Re: Re: 302 Responses (Was: session cookies)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/6/05, Rasmus Lerdorf <rasmus@xxxxxxxxxxx> wrote:
> Chris Shiflett wrote:
> > 3. Chris's modified test script:
> >
> > header('Location: http://www.php.net/');
> > $fp = fopen('/tmp/log.txt', 'w');
> > for ($i = 0; $i < 30; $i++)
> > {
> >     $str = "Count $i\n";
> >     echo str_repeat($str, 1000);
> >     fputs($fp, $str);
> >     sleep(1);
> >     flush();
> > }
> 
> This redirects right away for me.  Try it:

And me, with Firefox, Links and wget:

rmv@millikan:~$ wget -S http://localhost/redir.php
--11:50:33--  http://localhost/redir.php
           => `redir.php'
Resolving localhost... 127.0.0.1
Connecting to localhost[127.0.0.1]:80... connected.
HTTP request sent, awaiting response...
 1 HTTP/1.1 302 Found
 2 Date: Tue, 06 Sep 2005 10:50:33 GMT
 3 Server: Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4.1
 4 X-Powered-By: PHP/4.3.10-10ubuntu4.1
 5 Location: http://www.php.net/
 6 Connection: close
 7 Content-Type: text/html; charset=UTF-8
Location: http://www.php.net/ [following]
--11:50:34--  http://www.php.net/
           => `index.html.1'
Resolving www.php.net... 64.246.30.37
Connecting to www.php.net[64.246.30.37]:80... connected.
HTTP request sent, awaiting response...
 1 HTTP/1.1 200 OK
 2 Date: Tue, 06 Sep 2005 10:35:07 GMT
 3 Server: Apache/1.3.26 (Unix) mod_gzip/1.3.26.1a PHP/4.3.3-dev
 4 X-Powered-By: PHP/4.3.3-dev
 5 Last-Modified: Tue, 06 Sep 2005 10:12:46 GMT
 6 Content-language: en
 7 Set-Cookie: COUNTRY=GBR%2C195.224.112.192; expires=Tue, 13-Sep-05
10:35:07 GMT; path=/; domain=.php.net
 8 Connection: close
 9 Content-Type: text/html;charset=ISO-8859-1

    [    <=>                                                          
                               ] 38,675        30.18K/s

11:50:37 (30.13 KB/s) - `index.html.1' saved [38,675]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux