Web services 如何从url调用我的Web服务

Web services 如何从url调用我的Web服务,web-services,rest,url,post,Web Services,Rest,Url,Post,我的REST Web服务有一个端点,如下所示: http://www.example.com/example_endpoint/user 内容类型为:application/x-www-form-urlencoded 我想通过url使用以下参数调用它: firstname=firstname_test lastname=lastname_test pass=123 我这样打电话,但没有结果: http://www.example.com/example_endpoint/user?first

我的REST Web服务有一个端点,如下所示:

http://www.example.com/example_endpoint/user
内容类型为:application/x-www-form-urlencoded

我想通过url使用以下参数调用它:

firstname=firstname_test
lastname=lastname_test
pass=123
我这样打电话,但没有结果:

http://www.example.com/example_endpoint/user?firstname=firstname_test&lastname=lastname_test&pass=123

我应该如何调用Web服务?

您的Web服务是否需要通过GET发送参数及其对应的值?是的,它需要参数,但支持通过POSTOk发送;当您在URL中发送这些参数时,它们是通过GET而不是POST发送的。要通过POST发送,您需要使用HTML表单或其他编程选项发送它们。我只想搜索send post to web服务,这将为您指明正确的方向。