Re: slash vs backslash

From: Joona I Palaste (palaste_at_cc.helsinki.fi)
Date: 07/07/04


Date: 7 Jul 2004 16:13:38 GMT

Flip <[remove]phenry_w@hotmail.com> scribbled the following:
> Yup the backslash is the path separator, but it's Windows trying to help you
> out. For example, try swapping the slashes in your URLs in IE, both will
> work. That's Billy Boy trying to help you out. I'm not sure what Netscape
> does. Java is meant to be more straight forward, is a programming language
> not an OS and therefore needs to be more exactly. Also, Java was developed
> by a unix company (SUN, well, ok, a Solaris UNIX company, but it's not MS
> :>) and therefore you'll find a lot of UNIX oriented "things" that are
> ported over to Windows to make them cross platform.

If IE is so "helpful", then it also goes against the HTTP specification.
You can test it by giving a file on a UNIX web server a name containing
a backslash. Then try to request that file from IE. For example, suppose
the name is "foo\bar" on the server "http://mycorp.com". Now try to
request "http://mycorp.com/foo%5Cbar". See if you can get the correct
file.
This could be a fancy way to prevent IE users from viewing content on
UNIX webservers... =)

-- 
/-- Joona Palaste (palaste@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"'It can be easily shown that' means 'I saw a proof of this once (which I didn't
understand) which I can no longer remember'."
   - A maths teacher


Relevant Pages

  • Re: distinguishedName contains a backslash char
    ... including ADUC on Windows 2000 ADUC with certain specific domain configurations. ... Joe Richards Microsoft MVP Windows Server Directory Services ... >>>distinguishedName is built from, ... so they get escaped by the backslash to ...
    (microsoft.public.windows.server.active_directory)
  • Re: More died on open command (from 55103)
    ... I'm working with Activestate Activeperl 5.6 on a Windows ... > # Open the input folder ... This won't work because the backslash will escape the dollar sign. ...
    (perl.beginners)
  • Re: How can I import a py script by its absolute path name?
    ... >> the following character is a so called escape character, ... it does have a connection to Windows. ... backslashes are rarely used for anything *except* escape ... > On Windows, however, backslash is a valid path separator, and must be ...
    (comp.lang.python)
  • Re: where is the backslash on my keyboard
    ... What language version was your previous Windows version (e.g., ... Did you purchase the laptop? ... Did the team supply you with an English version of WinXP? ... I can't find the backslash on my keyboard. ...
    (microsoft.public.windowsxp.general)
  • Re: Saving a file to a users desktop.
    ... Take a look at the ADDBS() function. ... backslash at the end you'll get something like ... windows folder. ... What if windows is installed on the D drive? ...
    (microsoft.public.fox.programmer.exchange)