Re: [PD] http client native in pd?

2010-03-03 Thread Marco Donnarumma
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,

Re: [PD] http client native in pd?

2010-03-01 Thread Hans-Christoph Steiner
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

Re: [PD] http client native in pd?

2010-03-01 Thread martin.peach
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:

Re: [PD] http client native in pd?

2010-03-01 Thread Hans-Christoph Steiner
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, martin.pe...@sympatico.ca martin.pe...@sympatico.ca wrote: If you change the [list append 13 10] to [list

Re: [PD] http client native in pd?

2010-03-01 Thread martin.peach
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:

Re: [PD] http client native in pd?

2010-03-01 Thread Hans-Christoph Steiner
Nice example! .hc On Mar 1, 2010, at 5:13 PM, martin.pe...@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.

[PD] http client native in pd?

2010-02-27 Thread Chipp Jansen
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

Re: [PD] http client native in pd?

2010-02-27 Thread Martin Peach
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