Re: [PHP-DEV] trans-sid and Location: Header

2001-07-04 Thread derick

On Wed, 4 Jul 2001, Björn Schotte wrote:

> * Björn Schotte wrote:
> > http://$HTTP_HOST/foo isn't a "relative" link because

It's still considered as an external link (even by your browser probably),
because there is a server and documentroot specified. It's clearly an
absolute link to me, but it can be on the same server of course.

Derick


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] trans-sid and Location: Header

2001-07-04 Thread Sascha Schumann

On Wed, 4 Jul 2001, Björn Schotte wrote:

> * Alexander Wagner wrote:
> > Trans-sid doesn't work with complete URL beginning with "http://";, does
> > it? Aren't these regarded as external links?
>
> http://$HTTP_HOST/foo isn't a "relative" link because
> it's a "link" on the same web site.

If you supply the AI to figure out whether we should regard
an absolute URI as local and therefore append the SID to it,
I'm sure we can find a way to implement it.

- Sascha Experience IRCG
  http://schumann.cx/http://schumann.cx/ircg


--
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] trans-sid and Location: Header

2001-07-04 Thread Alexander Wagner

Björn Schotte wrote:
> * Björn Schotte wrote:
> > http://$HTTP_HOST/foo isn't a "relative" link because
>
>   ^^
> Erm, I mean "external".

Sure it isn't. but I fear trans-sid doesn't see it that way. AFAIK it 
distinguishes between relative and external links by the presence of 
the protocol-name (http:// or https://) in the url.

Correct me if I'm wrong.

This is far from perfect, of course, since _all_ urls, no matter where 
they point to, should be "complete" and contain the protocol-name.
Trans-sid's behaviour encourages (makes it necessary, even) to use 
incomplete urls.

But which other way is there?

regards
Wagner

-- 
Madness takes its toll. Please have exact change.

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] trans-sid and Location: Header

2001-07-04 Thread Björn Schotte

* Björn Schotte wrote:
> http://$HTTP_HOST/foo isn't a "relative" link because
  ^^

Erm, I mean "external".

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] trans-sid and Location: Header

2001-07-04 Thread Björn Schotte

* Alexander Wagner wrote:
> Trans-sid doesn't work with complete URL beginning with "http://";, does 
> it? Aren't these regarded as external links?

http://$HTTP_HOST/foo isn't a "relative" link because
it's a "link" on the same web site.
 
> BTW: I don't find it that difficult to rewrite the Headers manually. 

That's true, but in my eyes it would be more consistent.

-- 
PHP Schulungen und| International PHP Conference
Schulungsmaterial:| 05. - 07.11.2001
http://thinkphp.de/   |  Astron Hotel, Frankfurt
http://rent-a-phpwizard.de/schulungen.php |  http://www.php-kongress.de/

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] trans-sid and Location: Header

2001-07-04 Thread Alexander Wagner

Björn Schotte wrote:
> I had a talk with somebody whom I said that
> --enable-trans-sid would save time in his project.
> He implemented it but dropped me a note that he
> had to manually rewrite Header("Location:
> http://$HTTP_HOST/foobar.php";); URIs with the SID. So would it be
> able to implement
> trans-sid for the Location: HTTP Header?

Trans-sid doesn't work with complete URL beginning with "http://";, does 
it? Aren't these regarded as external links?

BTW: I don't find it that difficult to rewrite the Headers manually. 
You don't have that many of them, usually.

regards
Wagner

-- 
Madness takes its toll. Please have exact change.

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]