note 84124 added to function.httprequest-construct

From: Date: Mon, 30 Jun 2008 02:34:57 +0000
Subject: note 84124 added to function.httprequest-construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-140993@lists.php.net to get a copy of this message
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/". ---- Server IP: 209.41.74.194 Probable Submitter: 76.100.224.14 ---- Manual Page -- http://www.php.net/manual/en/function.httprequest-construct.php Edit -- https://master.php.net/note/edit/84124 Del: integrated -- https://master.php.net/note/delete/84124/integrated Del: useless -- https://master.php.net/note/delete/84124/useless Del: bad code -- https://master.php.net/note/delete/84124/bad+code Del: spam -- https://master.php.net/note/delete/84124/spam Del: non-english -- https://master.php.net/note/delete/84124/non-english Del: in docs -- https://master.php.net/note/delete/84124/in+docs Del: other reasons-- https://master.php.net/note/delete/84124 Reject -- https://master.php.net/note/reject/84124 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140993) next »