Reply to Re: REQUEST_URI

Your name:

Reply:


Posted by Jeremy on 12/07/06 18:59

John Dunlop wrote:
> Jeremy:
>
>> Example: for URL "http://www.foo.bar/path/script?thing=value"
>> $_SERVER["REQUEST_URI"] should be "/path/script"
>>
>> But it's now "/path/script?thing=value".
>>
>> Is this supposed to happen?
>
> An "abs_path" Request-URI can't contain a query part, strictly
> speaking, because the ABNF of RFC2616 doesn't allow it (RFC2616: 5.1.2;
> RFC3986: 3.5). The only way to pass data in the query part is to send
> an absolute URI.
>
> However, the errata mends this, so you can expect future revisions
> to allow query parts in relative Request-URIs. I shouldn't worry too
> much about it.
>
> http://skrb.org/ietf/http_errata.html#uriquery
>

I actually *don't want* the query string to be in there. In the past,
using $_SERVER["REQUEST_URI"] has been a reliable way to submit back to
the current page when mod_rewrite is messing with the URL (meaning using
the current script path won't work). Now, it's not really working that
well because it's including the current query string and messing things up.

Am I on crazy pills or did this not used to happen? Is this apache
messing up or PHP messing up (or me messing up)?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация