(Usage hints for this presentation)
Summer Term 2023
Dr. Jens Lechtenbörger (License Information)
telnet
or gnutls-cli
“Hourglass design”
http
:
//
www.ietf.org
/rfc/rfc2396.txt
ldap
:
//[2001:db8::7]/c=GB?objectClass?one
mailto
:
John.Doe@
example.com
tel
:
+1-816-555-1212
telnet
can be used (preinstalled
or available for lots of OSs)gnutls-cli
can be used (part of
GnuTLS, which is
free software)
www.informationelle-selbstbestimmung-im-internet.de
require GnuTLS
telnet
purpose: Login to remote host
ssh
telnet www.google.de 80
(port 80 for HTTP)
ctrl-+
or ctrl-]
, set localecho
[enter] [enter])GET / HTTP/1.1
[enter]Host: www.google.de
[enter] [enter]telnet
on previous slide (screencast)gnutls-cli --crlf www.informationelle-selbstbestimmung-im-internet.de
GET /chaosreader.html HTTP/1.1
[enter]Host: www.informationelle-selbstbestimmung-im-internet.de
[enter] [enter]gnutls-cli --crlf --starttls -p 587 secmail.uni-muenster.de
ehlo localhost
, then starttls
; press ctrl-d
to
enter TLS mode; needs authentication)ctrl-shift-I
with Firefox\r\n
below (press enter
, do not type this)GET
request (does not have a body)
GET /chaosreader.html HTTP/1.1\r\n
Host: www.informationelle-selbstbestimmung-im-internet.de\r\n
\r\n
GET
request
HTTP/1.1 200 OK\r\n
Date: Wed, 08 Apr 2020 13:30:10 GMT\r\n
Server: Apache\r\n
Last-Modified: Wed, 24 Jul 2019 12:25:46 GMT\r\n
ETag: "2cd1-58e6c6898dce2"\r\n
Content-Length: 11473\r\n
more headers omitted
Content-type: text/html; charset=utf-8\r\n
\r\n
HTML code as body
GET
(Request for resource, see section 4.3.1)HEAD
(Request information on resource, see section 4.3.2)POST
(Transfers entity, see section 4.3.3)
PUT
(Creates new resource on server, see section 4.3.4)DELETE
(Deletes resource from server, see section 4.3.5)CONNECT
(Establish tunnel with proxy, see section 4.3.6)OPTIONS
(Asks for server capabilities, see section 4.3.7)TRACE
(Tracing of messages through proxies, see section 4.3.8)GET
under conditions
If-Modified-Since
, If-Match
, If-None-Match
GET /chaosreader.html HTTP/1.1
Host: www.informationelle-selbstbestimmung-im-internet.de
If-None-Match: "2cd1-58e6c6898dce2"
HTTP/1.1 304 Not Modified
Date: Wed, 08 Apr 2020 14:07:31 GMT
additional headers
Location
header)GET
requests and conditional GET
requests on
the command line? Any surprises?
www.informationelle-selbstbestimmung-im-internet.de
require GnuTLS (server redirects HTTP requests on port 80 to
HTTPS port 443).Expires
, Max-Age
Domain
Caching reduces latency and server load for identical requests
“HTTP cache types” by Mozilla Contributors under CC BY-SA 2.5; from MDN web docs
GET
(“Slow hit”)no-store
, no-cache
, must-revalidate
no-cache
no-store
Content-Type
(type of data contained in message)Content-Transfer-Encoding
(how data in message body is encoded)Simple Mail Transfer Protocol, 1982 (SMTP, RFC 821→2821→5321)
telnet wi 25 Trying 128.176.159.139... Connected to wi.uni-muenster.de. Escape character is '\^]'. 220 wi-vm700.wi1.uni-muenster.de Microsoft ESMTP MAIL Service ready at Tue, 27 Oct 2009 11:22:11 +0100 HELO mouse.nix 250 wi-vm700.wi1.uni-muenster.de Hello [128.176.159.107] MAIL From: micky@mouse.nix 250 2.1.0 Sender OK RCPT To: lechten@wi.uni-muenster.de 250 2.1.5 Recipient OK DATA 354 Start mail input; end with <CRLF>.<CRLF> Received: from mx1.disney.com ([192.195.66.20]) by smtp.mouse.nix Super Duper SMTP Server; Tue, 27 Oct 2009 11:19:17 +0100 To: 42@universe.com From: micky@mouse.nuix Subject: Don't panic Somebody Else's Problem! (This is the message body after the empty line. Note that headers preceding the empty line have also been entered manually. They are ignored by SMTP, but displayed to user.) . 250 2.6.0 <b13a2a36-f56b-43ec-ad81-41ec44190e6a@wi-vm700.wi1.uni-muenster.de> Queued mail for delivery
Microsoft Mail Internet Headers Version 2.0 Received: from wi-vm700.wi1.uni-muenster.de ([128.176.158.92]) by wi-vmail2005.wi1.uni-muenster.de with Microsoft SMTPSVC(6.0.3790.3959); Tue, 27 Oct 2009 11:22:35 +0100 Received: from mouse.nix (128.176.159.107) by wi-vm700.wi1.uni-muenster.de (128.176.159.139) with Microsoft SMTP Server id 8.1.375.2; Tue, 27 Oct 2009 11:22:28 +0100 Received: from mx1.disney.com ([192.195.66.20]) by smtp.mouse.nix Super Duper SMTP Server; Tue, 27 Oct 2009 11:19:17 +0100 To: 42@universe.com From: <micky@mouse.nuix> Subject: Don't panic MIME-Version: 1.0 Content-Type: text/plain Message-ID: <b13a2a36-f56b-43ec-ad81-41ec44190e6a@wi-vm700.wi1.uni-muenster.de> Return-Path: micky@mouse.nix Date: Tue, 27 Oct 2009 11:22:28 +0100 X-OriginalArrivalTime: 27 Oct 2009 10:22:35.0473 (UTC) FILETIME=[66C35410:01CA56EF]
This document is part of an OER collection to teach basics of distributed systems. Source code and source files are available on GitLab under free licenses.
Except where otherwise noted, the work “Web and E-Mail”, © 2018-2023 Jens Lechtenbörger, is published under the Creative Commons license CC BY-SA 4.0.
In particular, trademark rights are not licensed under this license. Thus, rights concerning third party logos (e.g., on the title slide) and other (trade-) marks (e.g., “Creative Commons” itself) remain with their respective holders.