[AWS] Relative URLs

Patrice Freydiere frett27@free.fr
Thu, 12 Jun 2003 20:19:02 +0200


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I found the problem, 
You were right, 

in HTTP request, i passed a directory name without a trailing slash "/".
The browser doesn't understand it's a directory, then every relative links 
sucks !

the same behaviour append with AWS, 
if you just remove the trailing "/" when browsing a directory, you will see 
the same thing ..

Indeed,
I saw in the HTTP protocol, that it is possible to specify a Location field in 
the response header to specified the file browsed. that can probably help, 
specifically if you want to redirect a directory URL to an index file, and if 
you want the browser to refere the good location.

am i right ??

but, be confident pascal, AWS is really great !! 
I'm currently developping an image web server to manage my 3 go of pictures.
Thank's to aws features and jpeglib (i just only support jpegs for the moment) 
i think a can have a really complete application.
all source are under GPL and be very soon released for the first time.

I started building a standalone web server, but it can be quite easy to make a 
hotplug interface for AWS


best regards,
Patrice


Le Jeudi 12 Juin 2003 10:46, vous avez écrit :
> Patrice,
>
>  > My problem is when a dynamically generated page contain an anchor coded
>  > as a  relative URL , the browser don't see or remember the current "Web
>  > Directory"  where the page is.
>
> You mean that you have a page under say "root/dir" named index.html. In
> this page you have a href="toto.gif" and that toto.gif is looked into root
> instead of root/dir, right ?
>
> If so this is not an AWS issue. The problem is either in your code or your
> browser. The browser sends the URL to AWS and it must send
> root/dir/toto.gif. If you really think this is an AWS bug (always possible
> of course) can you send a small reproducer ?
>
> Thanks.
> Pascal.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iQEXAwUBPujEGYppebkTmmFWFAK93AP9HLidwVG5Ca/cylbJINHoNoO8YgIoUiE4
RTGM5ffMSqIegstRtYX2M6J0C7b2Aur9/spZuzPRbym0BlD/jvVHpPmR1nONwrLQ
2qLTqlRhH6dhULJ6hHCc9sLf6L7I9mHspeFYZy9ejWRHa9AeU8sgPGKdsMOksXao
W22H1UzyaxAEANHcLrJhAYhE8kh4WWsaWTrH46LYAmd6zhkG+vW62hdivBrDrrgl
HEsq8FCiXN1/BpQevYAPDUJ/cOwEcwDJv614eoMLg00865BDlaxeb/EJIyEhWkPf
TusYql8nO1N/7pN7JZFJMWyS8xsfVgW1NUBF/Hs3P3eiuAmxcB/7b7FN
=/Hb2
-----END PGP SIGNATURE-----