HTTP: Hyper Text Transfer Protocol

  • Protocol for transfer of resources
    • Resources:
      • Files
      • Result of :
        • Database query
        • Program execution
        • Automatic translation of a document
  • Specified in two incompatible versions:
    • HTTPv1.0 → RFC 1945
    • HTTPv1.1 → RFC 2616
  • Client-Server Model
  • Operates with simple “transactions”
    • Request – Response
      • Client requests objects → generates “requests”
        • Messages in ASCII format (understandable for humans
      • Server transfers objects → generates “responses”
        • ASCII messages MIME type (RFC 822)
    • Stateless and Connectionless protocol
      • Server does not store information on clients or transactions
      • Simplifies Servers design  High performance web servers, capable of handling many TCP connections
  • Uses TCP as transport layer protocol:
    • Client initiates a TCP connection (creates socket) to server, port 80
    • Server accepts TCP connection from client (connection socket is created in server)
    • HTTP messages (application-layer protocol messages) exchanged between browser (HTTP client) and Web server (HTTP server)
    • TCP connection closed
  • HTTP response status codes
    • 200 OK
      • request succeeded, requested object later in this msg
    • 301 Moved Permanently
      • requested object moved, new location specified later in this msg (Location:)
    • 400 Bad Request
      • request msg not understood by server
    • 404 Not Found
      • requested document not found on this server
    • 505 HTTP Version Not Supported
Picture showing a screenshot of a web browser with the 404 HTTP code

Question

Regarding HTTP:

  1. If you are seeing this web page right now, what status code have you received?
    1. 404
    2. 200
    3. 400
    4. 301
  2. Check answer
  3. What transport layer protocol uses?
    1. VDP
    2. UDP
    3. CDP
    4. None of the above
  4. Check answer
Project

  • University of Boras logo
  • UHI logo
  • Alcala University logo
  • Digital connextions logo

This resource was developed as part of an Erasmus+ project, funded with support from the European Commission under grant agreement 2016-1-SE01-KA203-22064.

The project was a collaboration between:

  Creative Commons License

This resource has been released under Creative Commons license CC-BY-SA 4.0.

Contact

  • University of Boras logo
  • UHI logo
  • Alcala University logo
  • Digital connextions logo

If you would like more information on this resource please contact:

  • Academic content – The University of Alcalá (https://www.uah.es/en/)
  • Technical resource development – The University of the Highlands and Islands Educational Development Unit - EDU (edu@uhi.ac.uk)
Disclaimer

  • University of Boras logo
  • UHI logo
  • Alcala University logo
  • Digital connextions logo

Except where otherwise noted, this website is licensed under Creative Commons license CC-BY-SA 4.0. All images used under permission remain the copyright of the license holder.

PDF

  • University of Boras logo
  • UHI logo
  • Alcala University logo
  • Digital connextions logo

Download a copy of this resource in PDF format.

You can also print individual pages by printing directly from the browser.

×