|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59406 Be able to use POST for getRequestToken, getAccessToken as well
Submitted: 2010-09-08 13:58 UTC Modified: 2011-01-15 12:39 UTC
From: sylvain dot lecoy at gmail dot com Assigned:
Status: Closed Package: oauth (PECL)
PHP Version: 5.3.2 OS: Windows 7
Private report: No CVE-ID: None
 [2010-09-08 13:58 UTC] sylvain dot lecoy at gmail dot com
We should be able to choose using the POST method for 
getRequestToken, getAccessToken, and not only with fetch.

As an example, linkedin API requires using a POST method to 
use their API (even if it's actually working with a GET 


(I'm using v0.99.9 but the methods in the 1.0.0 does not 
suggest that setting the http method is possible).


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-09 02:07 UTC]
There's a related bug to change the default method but you can pick POST 
the via constructor, see bug 18214:

- JJ
 [2011-01-15 12:39 UTC]
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

The default HTTP method has changed to POST in trunk (and will 
be changed in the next release).

- JJ
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Oct 01 13:01:24 2023 UTC