Hajo, try to change server to 199.16.156.11
There is no problem in request.

On Feb 19, 5:09 pm, dl1sdz <[email protected]> wrote:
> Hello,
>
> I try to code a fun project 
> MorseTweeter.http://hajos-kontrapunkte.blogspot.com/2011/01/morsetweeter-v-07-is-r...
>
> After a lot of research I came back and wanted to use the Arduino
> standalone. But here I got stuck in formulating the query:
> <snippet>
>     byte server[] = { 128, 242, 240, 148 }; // search twitter
>     // Make a HTTP request:
>     client.println("GET /search.atom?q=Morse&rpp=1 HTTP/1.1 ");
>     client.println("Host: search.twitter.com");
>     client.println("Accept: text/xml;q=0.9");
>     client.println();
> </ snippet>
>
> I always get an error 406.
> <snippet>
> connected
> Using Server: 128.242.240.148
> HTTP/1.1 406 Not Acceptable
> Date: Fri, 18 Feb 2011 22:11:11 GMT
> Server: hi
> Status: 406 Not Acceptable
> X-Transaction: 1298067070-49239-28953
> X-RateLimit-Limit: 150
> Last-Modified: Fri, 18 Feb 2011 22:11:10 GMT
> X-RateLimit-Remaining: 131
> X-Runtime: 0.08282
> X-Transaction-Mask: 0b5b266a28469a7b52ded76c9a66f018
> Content-Type: text/html; charset=utf-8
> Content-Length: 1
> Pragma: no-cache
> X-RateLimit-Class: api
> X-Revision: DEV
> Expires: Tue, 31 Mar 1981 05:00:00 GMT
> Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-
> check=0
> X-RateLimit-Reset: 1298067366
> ....
> Connection: close
> </snippet>
>
> If I only write:
> <snippet>
>     client.println("GET /search.atom?q=Morse&rpp=1");
>     client.println();
> </ snippet>
> This also does not work.
>
> I know that the search has to be URL-encoded, but GET is accepted. I
> read a lot of documentation but missed the point.
>
> It is only fun but help would be appreciated.
>
> Hajo

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to