Forums > MaxMSP

curl issue when sending soap requests.


Ad.
July 18, 2012 | 3:09 pm

Hello all,
I would like to know the position and the duration of movies which are played by western digital live hub players.
I send soap requests (upnp) to the western player and it gives me back the result of the query.
I do it thanks to a curl script which works fine in terminal, but when I trie to execute it into max thanks to the shell object, it gives me a 404 error (kind of)
I don’t understand why…
here’s: a patch and the curl script:
any help would be appreciated.
Thx.

– Pasted Max Patch, click to expand. –
Attachments:
  1. position.txt


Ad.
July 20, 2012 | 5:50 pm

no one would know about this ?
thx



Ad.
July 25, 2012 | 9:01 pm

too bad nobody is interested by this, it would be really powerful to trully be able to make some soap requests, or use wsdl service from max.


July 25, 2012 | 11:27 pm

>>I do it thanks to a curl script which works fine in terminal, but when I trie to execute it into max thanks to the shell object
I’m not familiar with the shell object in Max yet.

Which OS are you using?

Launch a basic webserver on your machine, create a simple html page that you can verify in your web browser.
Just try to the simplest http request from the shell. See if it gets served correctly by the web server.

Chances are you ‘ll need to put certain parts of the request in quotes, and/or escape other parts of the request, when sending it
via the shell.

Shells are notorious for requiring proper quoting in the cmd strings


Viewing 4 posts - 1 through 4 (of 4 total)