Android Question HTTPUTILS2 POSTSTRING HELP

little3399

Active Member
Licensed User
Longtime User
Hi

I using the HTTPUTILS2.POSTSTRING TO POST a request to a url and returne a error message :
{"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported"}
JobName = Baidu_Auth, Success = false
Error: Bad Request

But I post the same request in the mobile browser , it can works very well ,

the URL post link was : https://openapi.baidu.com/oauth/2.0...lient_secret=MgRLi6s8Gq3b4RLqZWNOrySjczGuyKGP

and attachment was my code ... need help ! Tks!
 

Attachments

  • BaiduVoice.zip
    7.1 KB · Views: 111

little3399

Active Member
Licensed User
Longtime User
HI, Erel

I change to send GET request , but the result was the same as the POST request ...
 

Attachments

  • BaiduVoice_get.zip
    7.2 KB · Views: 113
Upvote 0

little3399

Active Member
Licensed User
Longtime User
Hi

Appears to be invalid, even if according to your suggestion...
 

Attachments

  • BaiduVoice_get.zip
    7.3 KB · Views: 137
  • BaiduVoice_post.zip
    7.3 KB · Views: 110
Upvote 0
Top