Re: [twitter-dev] small update c client
If you get 302 it'll contain a Location header. Make request to that location again. You are requesting to twitter.com. You should be using api.twitter.com/1 instead. Its better you use curl in C. Here is a code snippet for you http://pastie.org/752884 Its generated by curl. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] small update c client
agreed - for future proofing purposes, make those calls against api.twitter.com/1. have fun in C. On Tue, Dec 22, 2009 at 1:35 AM, shiplu shiplu@gmail.com wrote: If you get 302 it'll contain a Location header. Make request to that location again. You are requesting to twitter.com. You should be using api.twitter.com/1 instead. Its better you use curl in C. Here is a code snippet for you http://pastie.org/752884 Its generated by curl. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
[twitter-dev] small update c client
Hey Guys , I'm trying to make a simple C project in Linux , to update my status on twitter . but i get a HTTP 302 found messages all the time . my code is below can u help me? char message[1000]=; char details[100]=user:password; char UserPass[100]; int msglen; char status[30]=status=d d d d damn !!!; msglen=strlen(status); BASE64_encode(details,UserPass); sprintf(message,POST /statuses/update.xml HTTP/1.1\r \nAuthorization: Basic %s\r\nHost: twitter.com\r\nContent-Length: %d\r \n\r\n%s,UserPass,msglen,status); write(sd,message,strlen(message)); read(sd,buf,200); printf(%s\n,buf); thanx.