Closed paazmaya closed 10 years ago
http_build_query($requestParameters, null, '&'); instead of http_build_query($requestParameters);
http_build_query($requestParameters, null, '&');
http_build_query($requestParameters);
By default http_build_query uses php.ini value arg_separator.output which in most cases is & in order to make HTML valid, thus failing the request.
http_build_query
arg_separator.output
&
http://php.net/manual/en/function.http-build-query.php
Seems like a good suggestion. This problem was not reported before, but I think it makes sense.
http_build_query($requestParameters, null, '&');
instead ofhttp_build_query($requestParameters);
By default
http_build_query
uses php.ini valuearg_separator.output
which in most cases is&
in order to make HTML valid, thus failing the request.http://php.net/manual/en/function.http-build-query.php