note 84124 deleted from httprequest.construct by sobak
| From: | sobak@php.net | Date: | Sun, 04 Dec 2016 07:27:05 +0000 |
| Subject: | note 84124 deleted from httprequest.construct by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208112@lists.php.net to get a copy of this message | ||
Note Submitter: andychr17 at hotmail dot com
----
I found that by not having a trailing slash (e.g. "http://www.google.com"), HttpRequest would tack on the
URI of the script I was currently accessing.
An easy way to prevent this from happening is to include a trailing slash in the url. This way,
"http://www.google.com" becomes "http://www.google.com/".