Notes for Computer Information Technology 160
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nov28.md 965B

November 28

Overview

  • HTTP
    • Cookies
  • Tools
    • $ nc
    • $ cURL
    • $ openSSL s_client
  • WIRE Protocol
  • Package
    • Header
    • Body
  • CGI
  • URL

Wire Protocol is what’s sent over the wire for any given protocol

FQDN stands for Full Qualified Domain Name

localhost is not a FQDN but still routes to 127.0.0.1, the loopback address

URL: http://hostname/foo/bar

  • Wire Protocol: http
  • hostname: hostname
  • path: /foo/bar
$ cURL             # get or put documents with protocols

$ netcat           # will make raw connections (does not support ssl/tls)

$ openssl s_client # make connections with ssl/tls

http://hostname/foo/bar?query&key1=val1&key2=val2#fragment

  • ”#fragment” is not sent to the server

Cookies persist when the web browser closes

curl --head example.com make a HEAD request, just get the head of the document