onzyone
onzyone

Reputation: 78

RESTful webservices in Matlab with authentication

I have been able to get the following Matlab plugin to work with my JSON return string: http://www.mathworks.com/matlabcentral/fileexchange/23393 (I am just copy and pasting the JSON into a file from my web browser)

However the RESTful webservice that I am hitting requires a login. I have been able to do this in java using org.apache.commons.httpclient.HttpClient; but can't seem to find a clean way of doing this in Matlab ...

Upvotes: 2

Views: 1209

Answers (1)

slayton
slayton

Reputation: 20319

Matlab allows the integration of and use of Java Classes and Methods. So if you already have the code working in Java, I'd just use that code in matlab.

Edit: If you're dead set on using matlab then you should probably check out urlread2. Although I have no clue if you can use it to save and use session cookies.

Upvotes: 1

Related Questions