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
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
Here's a sketch to start with. It works sometimes, but seems to be a
bit flaky:
.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
Ah, right, here's an updated version, that will also disconnect if
there's no response within 5000ms.
.hc
On Mar 1, 2010, at 3:23 PM, martin.peach@sympatico.ca <martin.peach@sympatico.ca
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
Nice example!
.hc
On Mar 1, 2010, at 5:13 PM, martin.peach@sympatico.ca 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
<httpget-ace.pd>
"[T]he greatest purveyor of violence in the world today [is] my own
government." - Martin Luther King, Jr.