我正在从C#中提一下GET。
var result = webClient.DownloadString(
Microsoft.JScript.GlobalObject.encodeURI(
"http://www.example.com?value=contacts[contact][0][name]=test man"
);
This results in the recieving PHP site: "value=contacts%5Bcontact%5D%5B0%5D%5Bname%5D=test%20man"
PHP脱节后
urldecode($value)
“数值=接触率%5Bcontact%5D%5B0%5D%5B 名义%5D=试验人”
因此,[......]错误
But when i paste the url in a browser (IE8 or Chrome) i get this results in the recieving PHP site: "value=contacts[contact][0][name]=test%20man"
IE. The browser sends the request (url) in a workable encoding, my code does not.
我如何以正确的编码来利用GET,正如浏览器所做的那样?