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:[EMAIL PROTECTED]]On Behalf Of Geir
> Eivind Mork
> Sent: Wednesday, 4 April 2001 18:22
> To: [EMAIL PROTECTED]
> 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/ |
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]