JavaWeb ----- Get and Post request request

   1. The transfer parameters using the GET method

  • Request method in the browser address bar, enter a hyperlink on a URL address or click on the page, HTTP browser sends a request message to GET
  • If <form> method attribute of the form elements are disposed the HTTP request message generated when the request to "GET", the browser submits a form page FORM is also to GET
  • Using the GET request method to pass parameters to the WEB server format: http: //www.atguigu.com/counter.jsp name = lc & password = 123?
  • The amount of data transmitted using the GET method is generally limited to less 1KB

   2. The transfer parameters using the POST method

  • POST request method is mainly used to submit data in the form FORM WEB server program: method set form in the form of POST
  • POST manner the amount of data elements and each data field of the form transmitted as an entity to the content of the HTTP message WEB server, amount of data transferred using the GET mode transmission than larger
  • POST request method to the data submitted placed in the package body http packet, and not exposed for

Guess you like

Origin www.cnblogs.com/fengfuwanliu/p/11441205.html