New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter REST API v1.1 appears to require non-empty Content-Length on POST #93

Closed
pavemen opened this Issue Oct 26, 2012 · 3 comments

Comments

Projects
None yet
4 participants
@pavemen

pavemen commented Oct 26, 2012

A bit of an FYI:

I used to use tmhAOuth 0.14 and the Twitter API v1 without any issue and I could delete a status via

$tmhOAuth->request('POST', $tmhOAuth->url('1/statuses/destroy/'.$id));

when I upgraded to tmhOauth 0.70 and the new Twitter REST API v1.1 was released, this no longer works and was getting a '411 Content-Length Required' message. I have to provide a non-empty array to the post param attribute

$tmhOAuth->request('POST', $tmhOAuth->url('1.1/statuses/destroy/'.$id), array('dummy'=>'dummy'));

and it all works fine now.

@neave

This comment has been minimized.

neave commented Oct 27, 2012

Thanks @pavemen has this been filed at https://dev.twitter.com/issues anywhere do you know?

@ghost ghost assigned themattharris Oct 27, 2012

@themattharris

This comment has been minimized.

Owner

themattharris commented Oct 27, 2012

duplicate of #94, we'll track this under that ticket instead.

@rasa

This comment has been minimized.

rasa commented Nov 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment