So I'm trying to send a POST request with pear HTTP_Request_2
I'm adding a POST parameter to a request with addPostParameter function
$request->addPostParameter(array(
'lgname'=>'Admin',
'lgpassword'=>'xxx','lgtoken'=>$xmlresponse->login['token']
));
however some extra characters appear in POST request body:
lgname=Admin&lgpassword=xxx&lgtoken%5B0%5D=6b9c078a99d5e9821ccaa8b3d41bfdef
uri decode says that %5B0%5D is [0] so it looks like lgtoken[0]=6b9c078a99d5e9821ccaa8b3d41bfdef
, but how does this appear here?? How to get rid of it?\
I need just lgtoken=6b9c078a99d5e9821ccaa8b3d41bfdef