Hi there,

I'll echo Jason's comment; by including the Authorization header you've exposed your password, please change it. You included the headers from your request below, but do you by chance have the body of the response available? Many times the error message in the body will give us a pointer to the exact cause.

Thanks;
 – Matt Sanford / @mzsanford
     Twitter Dev

On Jul 6, 2009, at 7:53 AM, JDG wrote:

Unfortunately, I can't help you, but I do want to remind you to change your password now, as the entire twitter dev community has it at this point :)

On Mon, Jul 6, 2009 at 08:02, Jason Korkin <jkor...@gmail.com> wrote:
Hello,

I am getting a 403 error when I attempt to send a response back to a user who sent a direct message.

I am using Basic Authentication. Below is a verbose dump from my PHP curl script.

Any ideas what I'm doing wrong here?

Thanks,

Jason


Sending DM to spdyme

* About to connect() to twitter.com port 80

* Trying 168.143.162.100... * connected

* Connected to twitter.com (168.143.162.100) port 80

* Server auth using Basic with user 'stfbf'

> POST /direct_messages/new.xml HTTP/1.1

Authorization: Basic c3RmYmY6c3R1ZmZidWZm

User-Agent: StuffBuff-DMC-1.0

Host: twitter.com

Pragma: no-cache

Accept: */*

Content-Length: 17

Content-Type: application/x-www-form-urlencoded

user=spdyme&text=< HTTP/1.1 403 Forbidden

< Date: Mon, 06 Jul 2009 13:44:17 GMT

< Server: hi

< Last-Modified: Mon, 06 Jul 2009 13:44:17 GMT

< Status: 403 Forbidden

< Pragma: no-cache

< Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0 < Content-Type: application/xml; charset=utf-8 < Content-Length: 188 < Expires: Tue, 31 Mar 1981 05:00:00 GMT < X- Revision: 010382b250edb838a5150b55e06469f866883024

< X-Transaction: 1246887857-86063-25318

< Set-Cookie: lang=; path=/

< Set-Cookie: _twitter_sess =BAh7CToJdXNlcmkEsI8mAzoTcGFzc3dvcmRfdG9rZW4iLWE1ZTJiOTYzZTdi%2

50AZDg0YmJiYWU0ZWRlYjQ1Y2Q4Yzg1NGI1MTE5NTA6B2lkIiU2MzBkNDAxNWY3 %250AYjU3NTAx

MTc5ZjU2MGRhN2RjN2ZiZCIKZmxhc2hJQzonQWN0aW9uQ29udHJv %250AbGxlcjo6Rmxhc2g6OkZ

sYXNoSGFzaHsABjoKQHVzZWR7AA%253D%253D-- ad71aed68a8cb2f1cbb226dbe9a0d27052819

7f3; domain=.twitter.com; path=/

< Vary: Accept-Encoding

< Connection: close

* Closing connection #0





--
Internets. Serious business.

Reply via email to