LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] url encoding..

[ILUG] url encoding..

Dave Wilson dave.wilson at heanet.ie
Wed Sep 6 11:36:53 IST 2000


> > >  OK, say if some muppet makes loads of images with spaces in the
> > > filenames, and uploads them to a website. Is it up to the HTML writer, the
> > > web browser, or the webserver to rewrite the spaces to %20's ?
> > AFAIK, the browser converts the spaces in the request to %20's

This can't be relied upon. Some browsers will convert, some will chop, and
some will pass the space right through to the server or proxy (whose behaviour
again is implementation defined).

>  Ah. So it's the Netscape client that's brain dead. I'll just have to tell
> them to use IE then..

Nope. A URL with a space in it is wrong, and should never be fed to the
browser (i.e. should never appear in a HREF) in the first place. A file
on a web server with a space in it is fine; the correct URL reference will
have space replaced with %20.

IOW: The onus is on the author.

I note that way back in Netscape 1.1, it was very forgiving of mistakes like
forgetting to plant a close quote before the end of the <A HREF> tag. So many
broken webpages that only Netscape could parse started springing up that they
went back on this in Netscape 2.

Dave

-- 
 dave.wilson at heanet.ie  ------------- DW238-RIPE -------------  +353-1-662-3412
 For public key mail                               My opinions, not necessarily
 davew+pgp at heanet.ie                                       those of my employer
 "Desmond takes Onomatopiates. He's a woof woof." -- "Metaphorazine", Jeff Noon




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell