http_build_query() without url encoding

bgcode picture bgcode · May 26, 2011 · Viewed 97.1k times · Source

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.

Answer

UserJA picture UserJA · Dec 23, 2011

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