How post data is sent to server?
We know when we send data using GET method the variables are sent as query string. But how its done when it is a POST request? The variables is not visible in the url then how it is sent?
The answers is REQUEST BODY and the format it is sent varies based on the form's content type . Usually we set it as application/x-www-form-urlencoded, so the values also sent in the same format. If you use addon like firebug you can visualize the post vaules like this:
The answers is REQUEST BODY and the format it is sent varies based on the form's content type . Usually we set it as application/x-www-form-urlencoded, so the values also sent in the same format. If you use addon like firebug you can visualize the post vaules like this:
field1=first&field2=second
Comments (0)