Search code examples
phpurlencode

http_build_query() without url encoding


Is there a way to use http_build_query() without having it URL encode according to some RFC standard?

Why I don't want to URL encode everything: I'm querying the Ebay API.. They honestly insist on parameter names not being URL encoded, as far as commas in parentheses. E.g. DomainName(0) is a parameter, and the query fails if those parens are encoded.


Solution

  • You can use urldecode() function on a result string which you get from http_build_query()