[PD] send GET with netclient (pd <-> php)

Martin Peach martinrp at vax2.concordia.ca
Thu Sep 15 16:53:52 CEST 2005


For troubleshooting purposes it's best to have the http server on the 
same machine as your pd patch. That way you can know what is happening 
at both ends of the connectioon and also you don't waste internet bandwidth.
Martin

Rune Lain Knudsen wrote:

>The strange thing about this is that I've managed sometimes to download a webpage(that is, getting it printed on the console as a textstream), so it seems to be possible. However this usually works the first time I open the patch, connect to a webpage and send a GET request. After the first download I'm unable to download it once more, even though I try to disconect/connect all over again. The example patch I've posted is a bit of a hassle though as it tries to get an xml, for troubleshooting purposes I think it's better to fetch a normal .html page somewhere else.
>
>Rune
>
>
>  
>
>>>hi carmen
>>>
>>>you're right. i wanted to say, that it is may not possible in pd itself
>>>(or is it?), since i know enrique and that he rather not uses pd with
>>>another script-language.
>>>
>>>cheers
>>>
>>>"carmen" wrote:
>>>
>>>
>>>      
>>>
>>>>On Tue, Sep 13, 2005 at 04:26:36PM +0200, Roman Haefeli wrote:
>>>>        
>>>>
>>>>>hi eni
>>>>>
>>>>>i thinks its no way that you can make HTTP GET-requests with pd
>>>>>          
>>>>>
>>>>why not? with python:
>>>>
>>>>import urllib
>>>>data = urllib.urlopen('http://www.blahblah/').read()
>>>>(pyext output crap here)
>>>>        
>>>>
>>>	
>>>
>>>	
>>>		
>>>___________________________________________________________ 
>>>Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
>>>
>>>_______________________________________________
>>>PD-list at iem.at mailing list
>>>UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>>>
>>>      
>>>
>>
>>
>>
>>_______________________________________________________________ 
>>In which city did seven people die of West Nile Virus in 1999?
>>
>>postmaster.co.uk
>>http://www.postmaster.co.uk/cgi-bin/meme/quiz.pl?id=19
>>    
>>
>
>
>
>_______________________________________________________________ 
>What was established in 1891, which altered the nature of publishing?
>
>postmaster.co.uk
>http://www.postmaster.co.uk/cgi-bin/meme/quiz.pl?id=274
>
>_______________________________________________
>PD-list at iem.at mailing list
>UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
>  
>





More information about the Pd-list mailing list