Is it the get or post method? I am confused, younger brother.

Source: Internet
Author: User
Is it get or post? I am confused {request: oauth2access_token, error_code: 10021, error: HTTP & nbsp; METHOD & nbsp; is & nbsp; not & nbsp; suported & nbsp; for & nbsp; this & nbsp; request !}, Whether post should be submitted in get or post mode? I am confused.
{"Request": "/oau2/ access_token", "error_code": 10021, "error": "http method is not suported for this request! "}, What should post be submitted?
It is Sina's oau2authorization. I have obtained the code, and this problem has been bothering me for a long time...

Sina OAuth

Share:


------ Solution --------------------
Post method
------ Solution --------------------
It is because your pass-through value is incorrect. it is certainly wrong to compare all the parameters passed by your curl/oau2/ access_token with sina.
Also, sina provides its own example. you can change the example to the interface you need.
------ Solution --------------------
10021 invalid request
You got something wrong or expired.

A set of error codes for Sina

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.