RE: [PEAR-DEV] Problem with HTTP_Request / Net_URL
| From: | Richard Heyes | Date: | Thu, 16 May 2002 10:01:53 +0000 |
| Subject: | RE: [PEAR-DEV] Problem with HTTP_Request / Net_URL | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6127@lists.php.net to get a copy of this message | ||
> In the class Net_URL which is used by HTTP_Request property
> $this->path defaults:
>
> $this->path = $HTTP_SERVER_VARS['PHP_SELF'];
>
> 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 '/'.
Fixed. Thanks.
--
Richard Heyes
Need webmail? http://www.v-webmail.co.uk