I get a problem when make GET request (I can say any request).
$link = 'http://URI/PATH/?param1=1&sid=2&sid=3&sid=4'
$http = $HttpSocket = new HttpSocket();
$res = $HttpSocket->get($link);
if check the request
pr($http);
I see :
[line] => GET /URL/PATH/?param1=1&sid%5B0%5D=2&sid%5B1%5D=3&sid%5B2%5D=4 HTTP/1.1
And I'm getting empty response because server doesn't know parameters like sid%5B0%5D=2
When I try to send parameters as array : $data = array('param1' => '1', 'sid' => array('2','3', '4'));
I see the same changes %5B0%5D
- additional indexes.
How to fix it?
Unfortunately , I can not change server side, but if send GET request in Browser, I'll get normal response in JSON format.