HTTP Anatomy Flashcards Preview

Phase_2 > HTTP Anatomy > Flashcards

Flashcards in HTTP Anatomy Deck (7)
Loading flashcards...

Diagram the anatomy of this HTTP url =>

We have a protocol, a domain name, and lastly a path to the content.


Diagram the anatomy of this HTTP url =>

We have a protocol, a subdomain then a domain. A port (http uses port 80, https uses 443), a path (index is searched for by default if file name not included) and a query (often followed by query parameters and used with dynamically generated pages), parameters and a fragment (content that follows and includes the pound sign).


Describe what an HTTP redirect is

http redirect or url redirect or url forwarding refers to the technique of making a web page available under more than one uniform resource locator address. An example would be having your address found using a different url address.


Recall at least 3 common HTTP headers

expires, age, language, content-type, cookie, MIME type (.js, .docx, .c).


Describe the difference between an HTTP POST and GET

The HTTP POST method is used to send information to our db server. The HTTP GET is used to retrieve info from the db server using a URI.


Describe an HTTP cookie

An http cookie is a small piece of data stored on your browser from a website. It is used to track whether you are making more than one request and so the website administrators can track your session activity and keep certain features of the site persistent such as your cart information, log-in info, etc.


How might you use the cURL command to make HTTP requests?

To use the cURL command to send data with an HTTP request do the following:
$ curl -d"first_name=Bruce&last_name=Wayne"