Difference between an HTTP query parameter and HTT

2020-03-12 04:38发布

What's the difference between an HTTP query parameter and an HTTP form parameter? I see the words in restful related documents. Can you give an example for the words in HTTP request.

标签: java http rest
1条回答
beautiful°
2楼-- · 2020-03-12 05:25

If you make request http://test.com?id=123, then id is a QueryParam (to be more precise this is GET request parameter), if you make POST request with a form inside body, then these form parameters (filled usually by user) are translated to FormParam-s.

查看更多
登录 后发表回答