HTTP

Objective/s:
  • To learn and understand HTTP methods.
  • To differentiate GET method from POST method.

Forms, Data Transferring, and Routing Rules

The modern internet is user-driven; all the actual content of a website is generated by the users of a website.  How does the user manage to get his or her data to the page??  One word: forms.  The HTML form is a way in which users are able to pass data to the back end of a website where data can be processed and stored.  Designing forms and processing the information correctly is a huge part of what it takes to become a back-end developer.  

HTTP Methods: GET and POST

If you are not already familiar with HTTP request methods, here's a brief run-down on the two most common: GET and POST. 

  • GET is used for passing insensitive information 
  • POST is used for passing sensitive information. 

When you create a form tag in HTML, you always need to specify the method used to send the request. The method attribute specifies the type of HTTP request b...