Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

IIS chokes on URLs with colons?

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Help with 500.100 errors on Outlook Web Access  
Author Message
anonymous12

External


Since: Sep 25, 2003
Posts: 2



(Msg. 1) Posted: Thu Sep 25, 2003 10:11 am
Post subject: IIS chokes on URLs with colons?
Archived from groups: microsoft>public>inetserver>iis (more info?)

I'm programming a script that pulls data out of the PATH_INFO environment variable. All of a sudden, when I try sending some data that includes colons (":") in the URL, IIS chokes and returns a 404 error. Bull****.

Despite the fact that colons are permitted in the path portion of the URL, I tried encoding them and got the same result.

What is the deal with this? Is there any way to make it work right?

For example:
http://www.example.com/script.cfm/blah/

= fine

----------

http://www.example.com/script.cfm/blah::blah/

or

http://www.example.com/script.cfm/blah%3A%3Ablah/

= 404

(both URLs work fine on Apache / Linux).

 >> Stay informed about: IIS chokes on URLs with colons? 
Back to top
Login to vote
wadeh

External


Since: Sep 03, 2003
Posts: 115



(Msg. 2) Posted: Thu Sep 25, 2003 2:34 pm
Post subject: Re: IIS chokes on URLs with colons? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi JMM,

IIS does not permit colons in the URL. This is because the NTFS file system
considers a colon to be a special character that's used to denote alternate
streams within a file. If your example URL below were handled by the static
file handler in IIS, it would attemps to open the stream called "blah"
within a file called "blah" in the "script.cfm" directory under wwwroot.

More specifically, without this limitation, if a client were to request
<a style='text-decoration: underline;' href="http://www.example.com/script.cfm::$data," target="_blank">http://www.example.com/script.cfm::$data,</a> then the contents of the
script.cfm file would get sent to the client instead of invoking ColdFusion
to process script.cfm.

If you want to prevent IIS from parsing your data, then put it either in the
query string or the entity body. A colon would be allowed in either of
those places.

Thank you,
-Wade A. Hilmo,
-Microsoft


"JMM" <anonymous.TakeThisOut@discussions.microsoft.com> wrote in message
news:930440B3-B280-4F2D-8EB0-8FFF8388FDDE@microsoft.com...
 > I'm programming a script that pulls data out of the PATH_INFO environment
variable. All of a sudden, when I try sending some data that includes colons
(":") in the URL, IIS chokes and returns a 404 error. Bull****.
 >
 > Despite the fact that colons are permitted in the path portion of the URL,
I tried encoding them and got the same result.
 >
 > What is the deal with this? Is there any way to make it work right?
 >
 > For example:
<font color=purple> > <a style='text-decoration: underline;' href="http://www.example.com/script.cfm/blah/</font" target="_blank">http://www.example.com/script.cfm/blah/</font</a>>
 >
 > = fine
 >
 > ----------
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.example.com/script.cfm/blah::blah/</font" target="_blank">http://www.example.com/script.cfm/blah::blah/</font</a>>
 >
 > or
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.example.com/script.cfm/blah%3A%3Ablah/</font" target="_blank">http://www.example.com/script.cfm/blah%3A%3Ablah/</font</a>>
 >
 > = 404
 >
 > (both URLs work fine on Apache / Linux).
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: IIS chokes on URLs with colons? 
Back to top
Login to vote
user862

External


Since: Sep 26, 2003
Posts: 1



(Msg. 3) Posted: Fri Sep 26, 2003 2:02 pm
Post subject: Re: IIS chokes on URLs with colons? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Well, Wade, thank you sincerely for your explanation, but
WTF?

That is total bullshit. You've got to be fucking kidding
me.

You guys just decided that you weren't going to "allow"
colons in

URLs? You guys really need to take a good long look at
RFC 2396

and get with the program.

Thanks for the suggestions, but if I wanted to put the
data in

the query string, I would have. As it is, I want it in
the path

/ PATH_INFO (something else botched in your servers). And
there

is no entity body in a URL. Colons are allowed exactly
where I

put them, in the path portion of the URL. Again, see RFC
2396.

Jesus christ, thank god I choose Apache.

 >-----Original Message-----
 >Hi JMM,
 >
 >IIS does not permit colons in the URL. This is because
the NTFS file system
 >considers a colon to be a special character that's used
to denote alternate
 >streams within a file. If your example URL below were
handled by the static
 >file handler in IIS, it would attemps to open the stream
called "blah"
 >within a file called "blah" in the "script.cfm" directory
under wwwroot.
 >
 >More specifically, without this limitation, if a client
were to request
 >http://www.example.com/script.cfm::$data, then the
contents of the
 >script.cfm file would get sent to the client instead of
invoking ColdFusion
 >to process script.cfm.
 >
 >If you want to prevent IIS from parsing your data, then
put it either in the
 >query string or the entity body. A colon would be
allowed in either of
 >those places.
 >
 >Thank you,
 >-Wade A. Hilmo,
 >-Microsoft
 >
 >
 >"JMM" <anonymous DeleteThis @discussions.microsoft.com> wrote in
message
 >news:930440B3-B280-4F2D-8EB0-8FFF8388FDDE@microsoft.com...
  >> I'm programming a script that pulls data out of the
PATH_INFO environment
 >variable. All of a sudden, when I try sending some data
that includes colons
 >(":") in the URL, IIS chokes and returns a 404 error.
Bull****.
  >>
  >> Despite the fact that colons are permitted in the path
portion of the URL,
 >I tried encoding them and got the same result.
  >>
  >> What is the deal with this? Is there any way to make it
work right?
  >>
  >> For example:
<font color=green>  >> <a style='text-decoration: underline;' href="http://www.example.com/script.cfm/blah/</font" target="_blank">http://www.example.com/script.cfm/blah/</font</a>>
  >>
  >> = fine
  >>
  >> ----------
  >>
<font color=green>  >> <a style='text-decoration: underline;' href="http://www.example.com/script.cfm/blah::blah/</font" target="_blank">http://www.example.com/script.cfm/blah::blah/</font</a>>
  >>
  >> or
  >>
<font color=green>  >> <a style='text-decoration: underline;' href="http://www.example.com/script.cfm/blah%3A%3Ablah/</font" target="_blank">http://www.example.com/script.cfm/blah%3A%3Ablah/</font</a>>
  >>
  >> = 404
  >>
  >> (both URLs work fine on Apache / Linux).
  >>
  >>
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS chokes on URLs with colons? 
Back to top
Login to vote
timcof

External


Since: Sep 02, 2003
Posts: 912



(Msg. 4) Posted: Wed Oct 01, 2003 11:10 am
Post subject: Re: IIS chokes on URLs with colons? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

That type of response is not needed on this newsgroup.

Thank you. I hope this information is helpful.

Tim Coffey [MSFT]

This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft Corporation. All rights reserved.
--------------------
| Content-Class: urn:content-classes:message
| From: "JMM" <no.TakeThisOut@thanks.com>
| Sender: "JMM" <no.TakeThisOut@thanks.com>
| References: <930440B3-B280-4F2D-8EB0-8FFF8388FDDE.TakeThisOut@microsoft.com> <eL#QLN5gDHA.520@tk2msftngp13.phx.gbl>
| Subject: Re: IIS chokes on URLs with colons?
| Date: Fri, 26 Sep 2003 11:02:17 -0700
| Lines: 103
| Message-ID: <01ea01c38458$52a7e830$7d02280a@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOEWFKnS84282aWTkS5htarxCiiGw==
| Newsgroups: microsoft.public.inetserver.iis
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.iis:277297
| NNTP-Posting-Host: TK2MSFTNGXS01 10.40.2.125
| X-Tomcat-NG: microsoft.public.inetserver.iis
|
| Well, Wade, thank you sincerely for your explanation, but
| WTF?
|
| That is total bullshit. You've got to be fucking kidding
| me.
|
| You guys just decided that you weren't going to "allow"
| colons in
|
| URLs? You guys really need to take a good long look at
| RFC 2396
|
| and get with the program.
|
| Thanks for the suggestions, but if I wanted to put the
| data in
|
| the query string, I would have. As it is, I want it in
| the path
|
| / PATH_INFO (something else botched in your servers). And
| there
|
| is no entity body in a URL. Colons are allowed exactly
| where I
|
| put them, in the path portion of the URL. Again, see RFC
| 2396.
|
| Jesus christ, thank god I choose Apache.
|
| >-----Original Message-----
| >Hi JMM,
| >
| >IIS does not permit colons in the URL. This is because
| the NTFS file system
| >considers a colon to be a special character that's used
| to denote alternate
| >streams within a file. If your example URL below were
| handled by the static
| >file handler in IIS, it would attemps to open the stream
| called "blah"
| >within a file called "blah" in the "script.cfm" directory
| under wwwroot.
| >
| >More specifically, without this limitation, if a client
| were to request
| >http://www.example.com/script.cfm::$data, then the
| contents of the
| >script.cfm file would get sent to the client instead of
| invoking ColdFusion
| >to process script.cfm.
| >
| >If you want to prevent IIS from parsing your data, then
| put it either in the
| >query string or the entity body. A colon would be
| allowed in either of
| >those places.
| >
| >Thank you,
| >-Wade A. Hilmo,
| >-Microsoft
| >
| >
| >"JMM" <anonymous.TakeThisOut@discussions.microsoft.com> wrote in
| message
| >news:930440B3-B280-4F2D-8EB0-8FFF8388FDDE@microsoft.com...
| >> I'm programming a script that pulls data out of the
| PATH_INFO environment
| >variable. All of a sudden, when I try sending some data
| that includes colons
| >(":") in the URL, IIS chokes and returns a 404 error.
| Bull****.
| >>
| >> Despite the fact that colons are permitted in the path
| portion of the URL,
| >I tried encoding them and got the same result.
| >>
| >> What is the deal with this? Is there any way to make it
| work right?
| >>
| >> For example:
| >> http://www.example.com/script.cfm/blah/
| >>
| >> = fine
| >>
| >> ----------
| >>
| >> http://www.example.com/script.cfm/blah::blah/
| >>
| >> or
| >>
| >> http://www.example.com/script.cfm/blah%3A%3Ablah/
| >>
| >> = 404
| >>
| >> (both URLs work fine on Apache / Linux).
| >>
| >>
| >
| >
| >.
| >
|
 >> Stay informed about: IIS chokes on URLs with colons? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Need script to add URLs to web sites - I have developed a process to replicate my web server to a development server . I need to be able to add a url to each site on the development server. IE for ABC.com I want to add test.abc.com. I need a script to automate this process but have no idea..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]