Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Web services URL参数中的一个锐化_Web Services_Url - Fatal编程技术网

Web services URL参数中的一个锐化

Web services URL参数中的一个锐化,web-services,url,Web Services,Url,如果你能帮助我,我将非常感激。 我的问题是我通过google chrome发送请求,如下所示: http://localhost:8080/Webservise/rest/getinfo?user=user1&pwd=rdd#en&sscc=009 当我测试他返回的url时: user = user1 pwd=rdd sscc= null 因为#是一个特殊的字符 有什么建议吗 非常感谢。是的#是一个很好的例子。为了确保它被解释为查询字符串的一部分,您必须对它进行URL编码(到

如果你能帮助我,我将非常感激。 我的问题是我通过google chrome发送请求,如下所示:

http://localhost:8080/Webservise/rest/getinfo?user=user1&pwd=rdd#en&sscc=009
当我测试他返回的url时:

user = user1
pwd=rdd
sscc= null
因为#是一个特殊的字符 有什么建议吗

非常感谢。

是的
#
是一个很好的例子。为了确保它被解释为查询字符串的一部分,您必须对它进行URL编码(到%23)-您应该将此操作作为所有查询字符串值的例程