Home  >  Article  >  Web Front-end  >  postdata中碰到&字符怎么处理_html/css_WEB-ITnose

postdata中碰到&字符怎么处理_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:08:411255browse

我用c#中的webbrowser,postdata中所有的都是英文的,准备好postdata诸如"a=b&c=d"然后编码传给navigate函数,一切都是正常的。

现在发现某个值的中间有个&字符,比如说a的值是"m&n",请问这里的&应该怎么处理,比如"a='m&n'&c=d"吗,我觉得这还不到编码的过程,网上找的在编码阶段处理的方法没有用。


回复讨论(解决方案)

转为%26不可?

直接用"a=m%26n&c=d",然后再调用编码函数我倒是没有试过,回去试试,谢谢了。

ps:这里的m&n我是用httpwatch抓到的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn