没有URL编码的http_build_query() [英] http_build_query() without url encoding
本文介绍了没有URL编码的http_build_query()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以使用http_build_query()
而无需根据某些RFC标准对其进行URL编码?
Is there a way to use http_build_query()
without having it URL encode according to some RFC standard?
为什么我不想对所有内容进行URL编码:我正在查询Ebay API..老实说,就括号中的逗号而言,他们坚持不对参数名称进行URL编码.例如. DomainName(0)是一个参数,如果对这些括号进行了编码,查询将失败.
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.
推荐答案
您可以使用 urldecode()
函数对从http_build_query()
这篇关于没有URL编码的http_build_query()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文