Skip to Main Content
PHP 5 Kochbuch, Third Edition
book

PHP 5 Kochbuch, Third Edition

by David Sklar, Adam Trachtenberg, Carsten Lucke, Matthias Brusdeylins, Ulrich Speidel, Stephan Schmidt
September 2009
Intermediate to advanced content levelIntermediate to advanced
912 pages
48h 11m
German
O'Reilly Verlag
Content preview from PHP 5 Kochbuch, Third Edition

13.8 Den Datenaustausch auf HTTP-Ebene debuggen

Problem

Sie möchten einen von einem Browser auf Ihrem Server ausgelösten HTTP-Request sowie die zugehörige HTTP-Response analysieren, weil beispielsweise Ihr Server nicht die erwartete Antwort auf eine bestimmte Anfrage liefert und Sie sich deshalb die Bestandteile des Requests genau ansehen möchten.

Lösung

Für einfache Anfragen können Sie sich über telnet mit dem Server verbinden und die Request-Header manuell eingeben:

% telnet www.example.com 80
Trying 208.77.188.166...
Connected to www.example.com.
Escape character is '^]'.
GET / HTTP/1.0
Host: www.example.com HTTP/1.1 200 OK Date: Sat, 17 Aug 2002 06:10:19 GMT Server: Apache/1.3.26 (Unix) PHP/4.2.2 mod_ssl/2.8.9 OpenSSL/0.9.6d X-Powered-By: PHP/4.2.2 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP programmieren unter Windows

PHP programmieren unter Windows

Arno Hollosi
CSS Kochbuch, 3rd Edition

CSS Kochbuch, 3rd Edition

Joergen Lang, Christopher Schmitt

Publisher Resources

ISBN: 9783868993271Purchase book