curl-library
Modify the HTTP Response?
From: Jeff Dunlap <jeff_j_dunlap_at_yahoo.com>
Date: Tue, 2 Dec 2008 00:28:24 +0000 (UTC)
Date: Tue, 2 Dec 2008 00:28:24 +0000 (UTC)
I am embedding a webpages into my PHP application like this:
<?php
$remote = fopen("http://.../DailyComics.cgi", "r");
fpassthru($remote);
?>
Do I need to change the DailyComics.cgi HTTP Response from the following to
something else:
HTTP/1.1 200 OK
Connection: close
Date: Mon, 01 Dec 2008 21:41:44 GMT
Server: Microsoft-IIS/6.0
Content-Type: text/html
Connection: Keep-Alive
Content-Length: 1040
Please note that DailyComics.cgi does not include the <html>, <header>, <body>
tags since the cgi output is embedded into the PHP page and the PHP page adds
the tags where necessary.
This seems to work fine, but I'd like to know if I need to modify the cgi's
HTTP Response.
Thank you very much
Jeff
Received on 2008-12-02