Android Question HTTPUTILS2 POSTSTRING HELP

Discussion in 'Android Questions' started by little3399, Jul 1, 2015.

  1. little3399

    little3399 Active Member Licensed 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!
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    The browser sends GET requests (Job.Download).
     
  3. little3399

    little3399 Active Member Licensed User

    HI, Erel

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

    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

  5. little3399

    little3399 Active Member Licensed User

    Hi

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

    Attached Files:

  6. Erel

    Erel Administrator Staff Member Licensed User

    Job.Download2 adds the question mark for you. Remove it from SysCnf.Baidu_AuthUrl and it will work.
     
  7. little3399

    little3399 Active Member Licensed User

    Tks Erel
     
Loading...