Evaluating HTTP Responses in PHP
Sometime it is valuable to check the HTTP response of a HTTP-request for quality and service availability assurance. The following code returns the headers given in response to a HTTP-request.
The following code opens a socket connection to a hostname or IP address (mandatory argument) and sends the request (mandatory argument). After that it returns the HTTP response code as a string.
The source code is well commented.
The example output would look like this:
HTTP/1.1 404 Not Found
February 17th, 2007 at 10:14 am
ファイル読込み…
$fp = fopen(’ファイル名’, ‘r’); if(!$fp) { printf(”ファイルのオープンに失敗しました。\n”); return; } while(!feof($fp)) { &…
April 12th, 2007 at 5:01 pm
Heh, I actually wrote a tutorial on this a while ago on a forum I manage (haven’t touched it in ages now, but heres a link: http://panicatthesyntax.com/showthread.php?t=67).
June 7th, 2007 at 6:29 pm
http://landbest.info/replica-watches/rolex-day-date-watches.php
June 9th, 2007 at 1:31 pm
toon bdsm…
Title of toon bdsm…
June 9th, 2007 at 4:35 pm
nude picture of asian women…
Relevant information about nude picture of asian women….
June 9th, 2007 at 5:54 pm
aunt judy bondage story…
Advantages of aunt judy bondage story….
June 9th, 2007 at 7:58 pm
real-pain nazi bdsm…
The best of real-pain nazi bdsm….
June 9th, 2007 at 9:18 pm
meet lesbian free…
Advantages of meet lesbian free….
June 9th, 2007 at 11:33 pm
shota hentai…
Title of shota hentai…
February 7th, 2008 at 4:02 am
Valentine card s
February 12th, 2008 at 8:21 pm
Trampoline games