hi eni
i thinks its no way that you can make HTTP GET-requests with pd. i don't know if the server may skip this, but [netclient] puts an ';' after each line. further is a correct GET request followed by two 'new line'-charactrers. if you put these in your message-box, they are skipped by [netclient]. for a short overview over the http-protocol and the syntax of GET, see: http://en.wikipedia.org/wiki/HTTP
if you send:
|send GET index.html HTTP/1.1 / | | |_____________________________\
to telenet on localhost, you get 'GET index.html HTTP/1.1;' wich is not a valid GET-request.
suddenly the example-address you posted, didn't even work with telnet. i would test with telnet first. it seems that some server want more info in order make them send the requested page.
roman
"Enrique Erne" wrote:
hi pd-list
I wondered if you've successfully sent a GET with netclient and received something . I'd like to communicate with a php script this
way
. Despite all my effort I never received any data from a server .
I tried Rune Lain Knudsen's WeatherTest1.pd : http://lists.puredata.info/pipermail/pd-list/2005-09/030918.html
connecting to port 80 print: send GET http://xoap.weather.com/search/local/NOXX0029? cc=*prod=xoap&par=151y032476&key* netclient: connection closed on socket 9
or (endless output)
netclient: not connected netclient: not connected netclient: not connected netclient: not connected netclient: not connected netclient: not connected netclient: not connected (I don't know how this could happen but it wasn't the first time)
I'm on os x , pd (037 - 039) , maxlib 1.5.2
thanks a lot for any hint . enrique
___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de