PHP sudden 400 HTTP ERROR

I feel like 343 might’ve blacklisted me or something lol
I’m using PHP, my code worked fine for the whole day…until like I started running my program in its full form, and then I start getting 400 messages

// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once ‘HTTP/Request2.php’;
$request = new Http_Request2(‘https://www.haloapi.com/stats/h5/servicerecords/arena?players=Major Nelson’);
$request->setConfig(‘ssl_cafile’, dirname(FILE). ‘/cacert.pem’);
$url = $request->getUrl();
$headers = array(
// Request headers
‘Ocp-Apim-Subscription-Key’ => ‘-------’,
);
$request->setHeader($headers);
//$parameters = array(
// Request parameters
//);
//$url->setQueryVariables($parameters);
$request->setMethod(HTTP_Request2::METHOD_GET);
// Request body
//$request->setBody("{body}");
try
{
$response = $request->send();
echo $response->getBody();
}
catch (HttpException $ex)
{
echo $ex;
}
?>

On the developer page is still says I am active, I changed my subscription key incase one of the API ran out of calls? or something, basically last resort trying out everything,

Still getting
HTTP Error 400. The request is badly formed.

UPDATE 1*
Querying the Campaign works, so basically it’s grabbing the Arena service records is the problem…

ANy ideas?

I’m hitting the same issue at the moment. I can’t seem to request anything, not even the Campaign like you were able to.

Is anyone else having this issue???

I thought I might be overloading the system and just need to wait a day but I’m still having this problem.

Okay I just solved it.

Players name with spaces in them needs to be replaced with %20

No idea why the problem just suddenly appearing.

> 2533274828936345;4:
> Okay I just solved it.
>
> Players name with spaces in them needs to be replaced with %20
>
> No idea why the problem just suddenly appearing.

Yep, I figured the same thing out late last night. Though, %20 didn’t work for me, I had to use +. Either way, glad it is solved.