RE: [PHP] read headers.
| From: | Andrew Braund | Date: | Wed, 04 Apr 2001 09:27:35 +0000 |
| Subject: | RE: [PHP] read headers. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47002@lists.php.net to get a copy of this message | ||
wget -s apache.org
works on *nix or windows, puts all headers and content to a file
eg saves to index.html which contains;
======8<============
HTTP/1.1 200 OK
Date: Wed, 04 Apr 2001 09:13:58 GMT
Server: Apache/2.0.16 (Unix)
Cache-Control: max-age=0
=======8<===========
etc
then content
PS Apache 2.0.16 could be beta, have four +1's :-)
> -----Original Message-----
> From: Geir Eivind M?rk [mailto:geir@coretrek.com]On Behalf Of Geir
> Eivind Mork
> Sent: Wednesday, 4 April 2001 18:22
> To: php-general@lists.php.net
> Subject: Re: [PHP] read headers.
>
>
> On 04 Apr 2001 03:15:25 -0500, Plutarck wrote:
> > As in when you pull up a site in your browser, or when
> you use a script to
> > make an http connection to another site?
>
> I want to make a connection to a foreign webserver and
> fetch the headers
> as well as the content. I was wondering of a 'painless' way
> instead of
> messing around on a lower level.
>
> > If you are using your browser on a windows box you can
> use a program called
> > Proxomitron. Just use it's log window to see all the HTTP
> connection fun.
>
> I haven't access to a windows computer. beside, that
> wouldn't help me
> anyway.
>
> --
> php developer / CoreTrek AS | Be careful when a
> loop exits to the same
> Sandnes / Rogaland / Norway | place from side and bottom.
> web: http://www.moijk.net/ |
>