urlread2

Generalizes HTTP requests, providing more control and access to input and output

You are now following this Submission

Version 1.1

Replacement for urlread. Example functions in the urlread2 file show how to make equivalent calls as are made in urlread. Helper functions can be written (some provided) to provide additional functionality without always needing to modify the urlread2 code.

Specific improvements:
- improved unicode support
- improved binary retrieval support
- request and response header access
- response status access

A technical description of the implementation can be found at:
http://undocumentedmatlab.com/blog/expanding-urlreads-capabilities/

Cite As

Jim Hokanson (2026). urlread2 (https://au.mathworks.com/matlabcentral/fileexchange/35693-urlread2), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

Changed description

1.1.0.0

Fixed GET example and code now returns HTTP status codes that are errors along with the error text instead of just throwing an error.

1.0.0.0