Re: Help in php
| From: | jeremy brand | Date: | Wed, 11 Oct 2000 06:48:37 +0000 |
| Subject: | Re: Help in php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19527@lists.php.net to get a copy of this message | ||
That makes sense. It didn't occur to me that it would be different.
Part of my original point is that the application developer may not be
wanting to say 302 to the client, but I suppose if they don't know the
difference (or HTTP) then it doesn't matter anyway.
I was being anal, but I get that way about standards... ;)
GET /foo HTTP/1.1
Host: THIS_IS_MY_HOST.com
HTTP/1.1 302 Found
Date: Wed, 11 Oct 2000 06:45:50 GMT
Server: Apache/1.3.12 (Unix)
Location: http://www.nirvani.net/
Transfer-Encoding: chunked
Content-Type: text/html
0
take care.
:)
-jeremy brand
_______________________________________________________________________
GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9
_ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more __
> Just to clarify this answer as I realize it is rather unclear. The HTTP
> status code is returned by the web server. PHP tells the web server which
> status code should be returned. You are testing PHP without a web server
> in your tests and as such you are not getting any status code at
> all. Note that you are also not seeing a 200 which you would surely get
> on a normal PHP request to a web server. That should have tipped you off.
>
> -Rasmus
>
>
> On Tue, 10 Oct 2000, Rasmus Lerdorf wrote:
>
> > > I'm not seeing that this is the case, at least with the CGI
> > > binary -- and I would expect that a module would do the same thing.
> >
> > Why would you expect that? The CGI version and the module version use
> > completely different mechanisms for talking to the web server.
> >
> > Try your test on the module version.
> >
> > -Rasmus
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>