Is it possible to make http requests with MATLAB?
I am specifically interested in the way to make a request and store the response as a new variable.
Is it possible to make http requests with MATLAB?
I am specifically interested in the way to make a request and store the response as a new variable.
urlread
will make an HTTP request to any URL and return the results as a char array.
For example:
>> s = urlread('http://www.mathworks.com');
>> whos s
Name Size Bytes Class Attributes
s 1x23346 46692 char
Depending on exactly what you're looking to extract as a variable, you may have to further post-process the result using functions like regexp
and str2double
.