curl issue when sending soap requests.
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.
----------begin_max5_patcher---------- 797.3oc0VszaaCCC9bxuBAuC4RbrkqSZqgiKxZ6Fxg9.qc6xxPgpMahJbjLj jyRWQ+uOIY6zzmHcEXX6hkEIE4GI+nruscKmK4KAoCJB8cTqV21tUKqHifV0 6a4LmrLMmHsl4LGjRxTvoakNErTYkOwAsbdNSFIGNYxDmYJUQjmmLcFLmH6o UI4jhdbwTOyKd.aAjyK.OiwHYDvR4YT1zyT2jCanGpNg0CIwxnOxytwr9IRY tJI9Jyh1DHQFseNEXpXu6kUoVpDZOj70SYmdnPvE0VTKNNCTDZdR7J8UonEd kBVTM1bKKXEtZfEkxYJAO2E65WgJvbp8MALzOL169sUZN.joBZghxYIGApY7 LzwbEZ77hbXtFwPV8YV2vXuU3Q+dCF8Vk3dMkB8KGVWlm3zzvxoLHkWxrcsv ZgEDU5LcJeg.RUUrgsBv852EE3uSO+tnc2x2rLP+D8i5CQyrMd9kW6Fzuw8r x4TVNnrjkfZgWoKKR5u.iLbf1QqrkWpZLFWKsRj5lBnBHNNqhnwOLxbqBmQB JI2wn3t1sMO59NYvokhbj6Bjq6LfjABzDm80AT2FbOWilHjwROMC.kNiHjfZ XmR0Ut6zQSfW6LmcxnSGs+4iO43HTmmkkHAwBZJDM5amKHLYAWnhve3yf5Tt jZZwiYWwsdMC0IdOSDW.BoVwPrt92P7GZi9dIn366yOYRZimhVM8twSt1.aY Zn3xnGA+Z2UNbyq.Z2LlIUDVJL9fD+Xu01gh8dRHLBWAf035IcP04.d2fd3A ZBbOb+HrOdmPuifLJ4K.S2q.wEqEeu5Y225bRX3.yjQH1Nl3u0qMlL3+noDF 7SMjexPRg9lQkyKWN1NnuoBf2t59BaUI3kt03YKG32R4v+uQNKmA44aPNGFZ W78esjF+9S5fWjCzE4bIgMcS4BVyrL8G8K.1jzH+gEKIuTj1DrZBM59rLCjJ JiXlOWyF7CrYFMKCXq25xnRxk4fsB4+rMsMEM3M.MluTgv+6.m+vhSUmiTTT +gAKTL.QSnulKLaGz0tkxp1Z8ni.VParueai2tq8uIq4+1K -----------end_max5_patcher-----------
no one would know about this ?
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.
>>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
Forums > MaxMSP