%Teilweise Erzeugt mit dem LaTeX-Generator: http://latex.sehnot.de

%Schriftgröße, Layout, Papierformat, Art des Dokumentes
%\documentclass[10pt,oneside,a4paper]{scrartcl}
\documentclass[landscape]{article}

%Einstellungen der Seitenränder
\usepackage[left=2cm,right=2cm,top=1.5cm,bottom=1.5cm,includeheadfoot]{geometry}

%neue Rechtschreibung
\usepackage[ngerman]{babel}

%Umlaute ermöglichen
\usepackage[utf8]{inputenc}

%Gesamtseitenzahl
\usepackage{lastpage}

% Kopf- und Fußzeile
\usepackage[automark]{scrpage2}

%Quellcode-Listings
\usepackage{listings}

%Hyperlinks
\usepackage{hyperref}

%Kopfzeile
\ihead{Netzwerktechnik}
\chead{}
\ohead{http://kohnlehome.de/netz/http-https-proxy.pdf}
\setheadsepline{0.5pt}

%Fußzeile
\setfootsepline{0.5pt}
\ifoot{Franz Kohnle}
\cfoot{Seite \thepage\ von  \pageref{LastPage}}
\ofoot{\today}

\pagestyle{scrheadings}

\begin{document}

% Überschrift 
\begin{center}
\LARGE % Schriftgröße
\bfseries % Fettdruck
\sffamily % Serifenlose Schrift
HTTP / HTTPS über Proxy-Server
\end{center}

\section*{HTTP}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{| l | l |}
\hline
ohne Proxy  & mit Proxy\\
\hline \hline

%\rule{0pt}{8ex}    
\begin{minipage}{6.5cm}
\begin{verbatim}

Client                      Server
  |                           |
  |<---TCP 3-way-handshake--->|
  |                           |
  |--HTTP GET /path/--------->|
  |<-HTTP 200 OK + <html> ...-|
  
\end{verbatim}
\end{minipage}

&

\begin{minipage}{15cm}
\begin{verbatim}

Client                               Proxy                               Server
  |                                    |                                    |
  |<-------TCP 3-way-handshake-------->|                                    |
  |                                    |                                    |
  |-HTTP GET http://example.com/path/->|                                    |
  |                                    |<-------TCP 3-way-handshake-------->|
  |                                    |                                    |
  |                                    |-HTTP GET http://example.com/path/->|
  |                                    |<--HTTP 200 OK + <html> ...-------->|
  |<--HTTP 200 OK + <html> ...---------|                                    |
  
\end{verbatim}
\end{minipage} \\

\hline
\end{tabular}




\section*{HTTPS}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{| l | l |}
\hline
ohne Proxy  & mit Proxy\\
\hline \hline


%\rule{0pt}{8ex}    
\begin{minipage}{8cm}
\begin{verbatim}

Client                              Server
  |                                     |
  |<--------TCP 3-way-handshake-------->|
  |                                     |
  |------------TLS Client Hello ------->|
  |<-----------TLS Server Hello---------|
  |<-----------Key Exchange ...-------->|
  |                                     |
  |---HTTP over TLS GET /path/--------->|
  |<--HTTP over TLS 200 OK + <html> ...-|  

\end{verbatim}
\end{minipage}

&

\begin{minipage}{13.54cm}
\begin{verbatim}

Client                          Proxy                           Server
  |                               |                               |
  |<----TCP 3-way-handshake------>|                               |
  |                               |                               |
  |-HTTP CONNECT example.com:443->|                               |
  |                               |<-----TCP 3-way-handshake----->|
  |<------HTTP 200 OK ------------|                               |
  |                               |                               |
  |------TLS Client Hello ------->|------TLS Client Hello ------->|
  |<-----TLS Server Hello---------|<-----TLS Server Hello---------|
  |<-----Key Exchange ...-------->|<-----Key Exchange ...-------->|
  |                               |                               |
  |----------HTTP over TLS GET http://example.com/path/---------->|
  |<---------HTTP over TLS 200 OK + <html> ...--------------------|
  
\end{verbatim}
\end{minipage} \\

\hline

\end{tabular}





\end{document}
