HTTP redirect
"ghhou" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Stipe,
The Base element in HTML specifies an absolute URI that acts as the base URI
for resolving relative URIs.
For example, given the following BASE declaration and A declaration:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>Our Products</TITLE>
<BASE href="http://www.aviary.com/products/intro.html">
</HEAD>
<BODY>
<P>Have you seen our <A href="../cages/birds.gif">Bird Cages</A>?
</BODY>
</HTML>
the relative URI "../cages/birds.gif" would resolve to:
http://www.aviary.com/cages/birds.gif
I'm sure you may be clear about the problem in proxy redirection. If no base
element existing, problem will happen.
Best Regards,
Guanghua Hou
----- Original Message -----
From: "Stipe Tolj" <[email protected]>
To: "Rene Kluwen" <[email protected]>
Cc: "ghhou" <[email protected]>; <[email protected]>
Sent: Thursday, November 27, 2003 8:20 AM
Subject: Re: HTTP redirect
> Rene Kluwen wrote:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > If you mean a relative URL in the Location: header.
> > Then this is something against HTTP specs. One should not use them.
> > Even though almost all browsers do prepend the original http-path if you
do
> > send them.
>
> nop, the point is different.
>
> Kannel wapbox does the Location following (hence redirection)
> transparently to the WAP user agent. Hence relative URLs within the
> WAP deck would result to address resources that are ment to be on a
> previously redirected URL. And there is where we "may" run into
> problems.
>
> Stipe
>
> mailto:[email protected]
> -------------------------------------------------------------------
> Wapme Systems AG