Making POST requests with parameters in GWT

前端 未结 4 1469
无人及你
无人及你 2021-02-04 05:53

I am trying to do a POST request with a set of parameters to a given URL. The problem I am having is that the POST request is made, but no parameters are passed.



        
4条回答
  •  忘掉有多难
    2021-02-04 06:04

    A web form can't be used to send a request to a page that uses a mix of GET and POST. If you set the form's method to GET, all the parameters are in the query string. If you set the form's method to POST, all the parameters are in the request body.

    Source: HTML 4.01 standard, section 17.13 Form Submission url: http://www.w3.org/TR/html4/interact/forms.html#submit-format

提交回复
热议问题