Skip to content

Instantly share code, notes, and snippets.

@szemate
Last active March 21, 2021 07:29
Show Gist options
  • Save szemate/c0555b53a5bbfc688d2024f0b45a0bb5 to your computer and use it in GitHub Desktop.
Save szemate/c0555b53a5bbfc688d2024f0b45a0bb5 to your computer and use it in GitHub Desktop.
HTTP exercise

HTTP request-response exercise

1. GET request

Open the Network tab in the browser's Developer Tools, copy-paste http://httpbin.org/get?org=CodeYourFuture&class=ldn7 into the browser's address bar and inspect the following:

  • Request URL: identify the scheme, the host, the endpoint and the query string
  • Request Method
  • Status Code: look it up at https://httpstatuses.com/
  • Request Headers: find the content type
  • Response Headers: find the content type
  • Request Payload
  • Response Payload

2. POST request

Load https://httpbin.org/forms/post, open the Network tab in the browser's Developer Tools, fill the form, and click "Submit order". Look at the same fields that you did in the previous exercise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment