Skip to content

Latest commit

 

History

History
20 lines (19 loc) · 1.37 KB

request.md

File metadata and controls

20 lines (19 loc) · 1.37 KB
  • HTTP methods:
    • GET: requests and gets the data from database
    • POST: gives the data to the database
    • PUT: update the data in database
    • DELETE: deletes the data in the databse
  • Query parameter: http://someurl.com/path?name=shivani&products=[prod,Email,Universal%20Ads]
    • Query parameters are a set of parameters attached to the end of a url. They are extensions of the URL that are used to help define specific content or actions based on the data being passed. To append query params to the end of a URL, a ‘?’ Is added followed immediately by a query parameter. To add multiple parameters, an ‘&’ is added in between each. These can be created by any variation of object types or lengths such as String, Arrays and Numbers.
  • URL encoding: In the above URL space(" ") is encoded as %20, as each charecter has its own encoding information URL encoding is necessary to avoid ambiguity. refer https://developer.mozilla.org/en-US/docs/Glossary/percent-encoding for more.
  • HTTP status code
  • Common HTTP headers
    • Request headers
    • Resposnse headers
    • Representation header
    • Payload headers