Re: Problem with HTTP_Request / Net_URL
| From: | Kristian Koehntopp | Date: | Thu, 16 May 2002 09:26:16 +0000 |
| Subject: | Re: Problem with HTTP_Request / Net_URL | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6126@lists.php.net to get a copy of this message | ||
On Thu, May 16, 2002 at 11:49:32AM +0300, Mika Tuupola wrote:
> This causes problems if the url you pass to to Net_URL
> misses the trailing slash ( http://www.example.com )
> because $PHP_SELF will be added to the request. IMO
> the correct default should be '/'.
>
> Yes, you can allways say the trailing slash should be
> there.
That slash need not be there per URI/URL RFC. http://www.example.com
becomes
GET / HTTP/1.1
Host: www.example.com
in a request. Note how this is different from a missing trailing
slash in a path component, http://www.example.com/bla
Kristian
--
http://www.amazon.de/exec/obidos/wishlist/18E5SVQ5HJZXG