I am currently building an AS3 library for Twitter and Have everything working (that I need) except for sending a new direct message. This will work if there are no spaces / special characters, however as soon as a space / special character is inserted, it breaks and i get an 'invalid response'
I have copied the URLs below along with the body of the posted (as it appears in fiddler) WORKS http://www.twitter.com/direct_messages/new.xml? oauth_consumer_key=Y6AmNZPsg1AOQLwCSmevQ oauth_nonce=R0agxUikM oauth_signature=R7spSxYu1fnhiCj4z4cc3nu3%2FKc%3D oauth_signature_method=HMAC-SHA1 oauth_timestamp=1256737004 oauth_token=83934696-9mlD2907Boot90C1YbLpkexMJwAFR8WdZojMJCmC1 oauth_version=1.0 "body" text: helloWorld user: whomba DOESN"T WORK http://www.twitter.com/direct_messages/new.xml? oauth_consumer_key=Y6AmNZPsg1AOQLwCSmevQ oauth_nonce=IPNusdfF3dw oauth_signature=CrcXThFjyZ1MIU84RkrG8lb5L60%3D oauth_signature_method=HMAC-SHA1 oauth_timestamp=1256737136 oauth_token=83934696-9mlD2907Boot90C1YbLpkexMJwAFR8WdZojMJCmC1 oauth_version=1.0 "body" text:hello World user: whomba I have tried urlEncoding it, and just making the text 'hello%20World' however both of these fail. I am able to get updateStatus to work, which as far as i can tell, is pretty identical as new direct message (as far as how the URL is constructed, and POST is sent) Hopefully one of you has had this problem also, and might be able to help. Thanks a lot! -Andrew