PHP Classes

Incorrect GET request

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  Incorrect GET request  >  (Un) Subscribe thread alerts  
Subject:Incorrect GET request
Summary:bug fix
Messages:2
Author:VS7 Co
Date:2013-09-18 14:00:11
Update:2013-10-13 08:18:52
 

  1. Incorrect GET request   Reply   Report abuse  
Picture of VS7 Co VS7 Co - 2013-09-18 14:00:12
GET request MUST not contain any body.
Even if we have empty $parameters we have header "Content-Length" and "[]" as body (in case of json). LiteSpeed throws 400 error.

Replace lines 1286-1290 with:

if(!IsSet($options['RequestBody']) && !empty($parameters))
{
$arguments['Body'] = json_encode($parameters);
}
break;

  2. Re: Incorrect GET request   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-10-13 08:18:52 - In reply to message 1 from VS7 Co
Can you provide an example of use of CallAPI that you run into that situation?