I try to code a fun project MorseTweeter.

After a lot of research I came back and wanted to use the Arduino
standalone. But here I got stuck in formulating the query:
    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");
</ snippet>

I always get an error 406.
Using Server:
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-
X-RateLimit-Reset: 1298067366
Connection: close

If I only write:
    client.println("GET /search.atom?q=Morse&rpp=1");
</ 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.


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: 

Reply via email to