I'm trying to create a HTTP heading to send a tweet to my account (using GLBasic). Unfortunately the API documentation is no help in how this should be defined or what exactly to send.
>From the scraps of a C# demo, I've got : send$ = "POST "+curl$+" HTTP/1.0\r\n" INC send$, "Authorization: Basic FishyMcFlipFlop:burpmachine\r\n" INC send$, "status:"+postdata$+"\r\n" INC send$, "Content-Length: "+LEN(postdata$) + "\r\n" INC send$, "\r\n" INC send$, postdata$ With <user> and <password> being my account and password. curl$ is the URL that being used to send the data (/1/statuses/ update.xml), and the HTML address is api.twitter.com postdata$ contains the contents of the tweet... Unfortunately, all I get back at the moment is : REsult : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional// EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> more stuff here </html> I presume oAuth needs to be used. How do you go about creating a header-based auth ?