Mike said:
Is there an official specification now? There wasn't as of several
years ago -- it was just sort of defined by the behavior of the NSCA
(then Apache) server behavior, plus a little web page at
ncsa.uiuc.edu.
There is some question as to what is meant by current URL. Is it
the SCRIPT_NAME without PATH_INFO?
no
Does it include the QUERY_STRING?
yes
The current URL would be in my opinion what one sees in the addressbar
when the script is called.
"self_url() will return a URL, that, when selected, will reinvoke this
script with all its state information intact. "
If self_url excludes either PATH_INFO or QUERY_STRING it's wrongly
implemented IMNSHO, or the documentation is incorrect (I consider
PATH_INFO state information too).
" Semicolon-delimited query strings are always accepted, but will not
be emitted by self_url() and query_string() unless the -
newstyle_urls pragma is specified.
This became the default in version 2.64."