At http://bazaar.launchpad.net/~philho/+junk/Processing/view/head:/_QuickExperiments/_Net/HTTP_GET/HTTP_GET.pde I give an example to get data from an URL needing a user agent: some servers prefer to avoid automated connections, or rely on user agent to personalize answers or something.
Notice how the Client constructor takes only the top-level URL, the parameters must be given in the GET request.
Showing the lines I changed for testing your URL:
- void draw()
- {
- if (step > 0)
- {
- println("------ " + step);
- client = new Client(this, "www.teamliquid.net", 80);
- }
- switch (step)
- {
- case 1:
- client.write("GET /video/streams/?xml=1&filter=live HTTP/1.1\r\n");
- client.write("Host: www.teamliquid.net\r\n");
The fetched data is gzipped, so it shows binary data.