Re: Means of collecting HTTP response headers

From: Date: Sat, 31 Jul 2004 15:48:48 +0000
Subject: Re: Means of collecting HTTP response headers
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-192399@lists.php.net to get a copy of this message
* Thus wrote Burhan Khalid: > Curt Zirzow wrote: > >* Thus wrote Gerard Samuel: > > > >>On Friday 30 July 2004 01:32 pm, Gerard Samuel wrote: > >> > >>>A means that is not specifically tied to Apache functions. > >>>Just looking for a way so that it works no matter the webserver. > >>> > >> > >>Seems like the function stream_get_meta_data() will fill the job.. > > > > > >hmm.. are you able to get the headers from that? could you provide a > >sample? > > <?php > echo "<pre>"; > > print_r(stream_get_meta_data(fopen("http://www.google.com","r"))); > echo > "</pre>"; > ?> Ah ok, i had thought you meant the current scripts request headers. Thanks. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!

« previous php.general (#192399) next »