Re: [PD] http client native in pd?
Thanks for that guys... I worked it out in a quite rough way (parsing the ping results coming from shell) few days ago and was looking for a proper and cheaper way to do it. And here's a version that gets the latest solar wind speed from the ACE > satellite... > > Martin > > hc wrote: > > > > Ah, right, here's an updated version, that will also disconnect if > > there's no response within 5000ms. > > > > .hc > > > > > -- Marco Donnarumma aka TheSAD Independent New Media Arts Professional, Performer, Teacher - Edinburgh, UK LAB: http://www.thesaddj.com | http://cntrl.sourceforge.net | http://www.flxer.net EVENT: http://www.liveperformersmeeting.net ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] http client native in pd?
Nice example! .hc On Mar 1, 2010, at 5:13 PM, wrote: And here's a version that gets the latest solar wind speed from the ACE satellite... Martin hc wrote: Ah, right, here's an updated version, that will also disconnect if there's no response within 5000ms. .hc "[T]he greatest purveyor of violence in the world today [is] my own government." - Martin Luther King, Jr. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] http client native in pd?
And here's a version that gets the latest solar wind speed from the ACE satellite... Martin hc wrote: > > Ah, right, here's an updated version, that will also disconnect if > there's no response within 5000ms. > > .hc > httpget-ace.pd Description: application/puredata ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] http client native in pd?
Ah, right, here's an updated version, that will also disconnect if there's no response within 5000ms. .hc httpget.pd Description: Binary data On Mar 1, 2010, at 3:23 PM, > wrote: If you change the [list append 13 10] to [list append 13 10 13 10], adding a blank line to the request, it works. Martin hc wrote: Here's a sketch to start with. It works sometimes, but seems to be a bit flaky: Mistrust authority - promote decentralization. - the hacker ethic ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] http client native in pd?
If you change the [list append 13 10] to [list append 13 10 13 10], adding a blank line to the request, it works. Martin hc wrote: > > > Here's a sketch to start with. It works sometimes, but seems to be a > bit flaky: ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] http client native in pd?
Here's a sketch to start with. It works sometimes, but seems to be a bit flaky: httpget-help.pd Description: Binary data httpget.pd Description: Binary data .hc On Feb 27, 2010, at 1:41 PM, Martin Peach wrote: Look at [mrpeach/tcpclient]. The help file does that. You need to format the strings as lists of bytes, probably tables are the best way to do that, although if you have Pd-extended the [mrpeach/str tolist] object will do it. Or just use text files with the request strings. Then load the response into a table and parse it there. Martin Chipp Jansen wrote: Does anybody know if there is a [httpclient] object that allows one to fetch url's from within pd? I want to grab small bits of XML feeds into my patch. I started to try to use the [netclient] object by making requests to port 80 on servers, but I'm just curious if somebody created something that runs from with in pd already? Thanks! Chipp ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list Information wants to be free.-Stewart Brand ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] http client native in pd?
Look at [mrpeach/tcpclient]. The help file does that. You need to format the strings as lists of bytes, probably tables are the best way to do that, although if you have Pd-extended the [mrpeach/str tolist] object will do it. Or just use text files with the request strings. Then load the response into a table and parse it there. Martin Chipp Jansen wrote: Does anybody know if there is a [httpclient] object that allows one to fetch url's from within pd? I want to grab small bits of XML feeds into my patch. I started to try to use the [netclient] object by making requests to port 80 on servers, but I'm just curious if somebody created something that runs from with in pd already? Thanks! Chipp ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] http client native in pd?
Does anybody know if there is a [httpclient] object that allows one to fetch url's from within pd? I want to grab small bits of XML feeds into my patch. I started to try to use the [netclient] object by making requests to port 80 on servers, but I'm just curious if somebody created something that runs from with in pd already? Thanks! Chipp ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list