Manasi Salvi

HTTP and HTML forms

This last week I build a very simple Sinatra “Hello World” application in which a user had to submit a bit of their information via a form. One of the things the user had to do is attach a file to this form. I did a bit of research on the behind the scenes stuff - what actually happens when a user interacts with your web applications and more specifically when it involves filling out forms. Pretty boring stuff but important when it comes to building web applications - even static pages. I consulted the HTTP RFC document and the MDN documents for the research. Here are some basic key points I found useful.

HTTP - Hypertext Transfer Protocol

A request/response protocol in which clients and servers communicate/exchange data. In the simplest terms a client sends a request to a server in the form of a request method via a Web browser and the server sends a response back to the client.

The request - GET/POST

GET request:

POST request:

The response - Server side

Proxy


comments powered by Disqus