[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

Uri and the %2f and %5c escape codes.

Paul Linville

4/20/2008 5:41:00 PM

We need to be able to use the following URL that is given to us by a test
harness.

hTTps://000.000.000.000:000/59B9F4F20E2911DDA2C7E519FDF7B25D;59B9F4F30E2911DDA2C79DE1971E1E45/@%5C%A1%38jzrF%88K6czQq%2A~%bc%e0HMn%027Cxh:Kc)R+z%0EAPySaroF%19b-0X2G%06F)%3du%c2%55eOQY%03DZd*:8cviSj.A~CYRe.H.$%4CMp%CBCr'xm!y%D3HW%F2%5D+7@JvR%B7Z


I cannot construct a Uri and use that Uri in a web request. I always get 404
not found. One thing I noticed is that the %5C is converted to a forward
slash ("/") and I don't think it is supposed to be with respect to what the
server is expecting.

Others have passed the harness and have been able to use the above URL but I
don't know what platform they are using.

I am pretty sure it has to do with the %5c. Another URL that fails has the
%2f escape sequence in the path. From what I understand the Uri class ALWAYS
unescapes those two to conform with rfc 3986.

If I understand everything correctly the escape codes %5c and %2f cannot be
used in the path segment when using the Uri class. They can be used in the
query segment, however.

First, can somebody confirm my suspicions?

Secondly, does anybody know how I can work around this?

5 Answers

Jonathan Boivin

4/21/2008 2:36:00 AM

0

I would try adding a question mark right after the slash next the port.

so : https://IP:PORT/?....

--

Au plaisir,
Jonathan Boivin
---
jonathanboivin@cints.net | 514-779-1129 | www.cints.net
"Paul Linville" <paullinville@hotmail.com> a écrit dans le message de news:
74DA5B7C-D25A-4A5D-9392-F7D658AE1A3E@microsoft.com...
> We need to be able to use the following URL that is given to us by a test
> harness.
>
> hTTps://000.000.000.000:000/59B9F4F20E2911DDA2C7E519FDF7B25D;59B9F4F30E2911DDA2C79DE1971E1E45/@%5C%A1%38jzrF%88K6czQq%2A~%bc%e0HMn%027Cxh:Kc)R+z%0EAPySaroF%19b-0X2G%06F)%3du%c2%55eOQY%03DZd*:8cviSj.A~CYRe.H.$%4CMp%CBCr'xm!y%D3HW%F2%5D+7@JvR%B7Z
>
>
> I cannot construct a Uri and use that Uri in a web request. I always get
> 404 not found. One thing I noticed is that the %5C is converted to a
> forward slash ("/") and I don't think it is supposed to be with respect to
> what the server is expecting.
>
> Others have passed the harness and have been able to use the above URL but
> I don't know what platform they are using.
>
> I am pretty sure it has to do with the %5c. Another URL that fails has
> the %2f escape sequence in the path. From what I understand the Uri class
> ALWAYS unescapes those two to conform with rfc 3986.
>
> If I understand everything correctly the escape codes %5c and %2f cannot
> be used in the path segment when using the Uri class. They can be used in
> the query segment, however.
>
> First, can somebody confirm my suspicions?
>
> Secondly, does anybody know how I can work around this?


Paul Linville

4/21/2008 1:17:00 PM

0

Tried that but it didn't work.

"Jonathan Boivin" wrote:

> I would try adding a question mark right after the slash next the port.
>
> so : https://IP:PORT/?....
>
> --
>
> Au plaisir,
> Jonathan Boivin
> ---
> jonathanboivin@cints.net | 514-779-1129 | www.cints.net
> "Paul Linville" <paullinville@hotmail.com> a écrit dans le message de news:
> 74DA5B7C-D25A-4A5D-9392-F7D658AE1A3E@microsoft.com...
> > We need to be able to use the following URL that is given to us by a test
> > harness.
> >
> > hTTps://000.000.000.000:000/59B9F4F20E2911DDA2C7E519FDF7B25D;59B9F4F30E2911DDA2C79DE1971E1E45/@%5C%A1%38jzrF%88K6czQq%2A~%bc%e0HMn%027Cxh:Kc)R+z%0EAPySaroF%19b-0X2G%06F)%3du%c2%55eOQY%03DZd*:8cviSj.A~CYRe.H.$%4CMp%CBCr'xm!y%D3HW%F2%5D+7@JvR%B7Z
> >
> >
> > I cannot construct a Uri and use that Uri in a web request. I always get
> > 404 not found. One thing I noticed is that the %5C is converted to a
> > forward slash ("/") and I don't think it is supposed to be with respect to
> > what the server is expecting.
> >
> > Others have passed the harness and have been able to use the above URL but
> > I don't know what platform they are using.
> >
> > I am pretty sure it has to do with the %5c. Another URL that fails has
> > the %2f escape sequence in the path. From what I understand the Uri class
> > ALWAYS unescapes those two to conform with rfc 3986.
> >
> > If I understand everything correctly the escape codes %5c and %2f cannot
> > be used in the path segment when using the Uri class. They can be used in
> > the query segment, however.
> >
> > First, can somebody confirm my suspicions?
> >
> > Secondly, does anybody know how I can work around this?
>
>
>

Matthew B. Tepper

7/31/2010 4:05:00 PM

0

Bob Harper <bob.harper@comcast.net> appears to have caused the following
letters to be typed in news:AiP4o.551803$Bs1.527597@en-nntp-
01.dc1.easynews.com:

> On 7/30/10 10:18 PM, mark wrote:
> (snip)
>
>> Let me know when you have the definitive answer to how many angels may
>> dance on the head of a pin.
>
> As angels are pure spirits, the answer is obvious: an infinite number.
> If that's a representative sample of an atheist 'speaking truth to
> religion', I'm decidedly unimpressed. I'm frankly surprised you were
> taken in by that old chestnut.

Ah, but WHICH kind of infinity? Aleph-null, Aleph-one, or something else?

--
Matthew B. Tepper: WWW, science fiction, classical music, ducks!
Read about "Proty" here: http://home.earthlink.net/~oy/...
To write to me, do for my address what Androcles did for the lion
Opinions expressed here are not necessarily those of my employers

William Sommerwerck

7/31/2010 4:33:00 PM

0

> > Let me know when you have the definitive answer to how many angels may
> > dance on the head of a pin.

> As angels are pure spirits, the answer is obvious: an infinite number.

Who knew that there were an infinite number of angels? There's not an
infinite number of gods, nor sons of god, nor Satans nor grains of
sand in the ocean, yet there are an infinite number of angels.

Hmm. Is there a corresponding infinite number of demons?


He didn't say how many /were/ dancing, he said /may/ dance.

Point of interest... As angels are spiritual beings existing in a spiritual
realm, there are no pins for them to dance on in the first place.


Bob Lombard

7/31/2010 4:41:00 PM

0

On 7/31/2010 11:55 AM, mark wrote:
> On Jul 30, 11:22 pm, Bob Harper<bob.har...@comcast.net> wrote:
>> On 7/30/10 10:18 PM, mark wrote:
>> (snip)
>>
>>> Let me know when you have the definitive answer to how many angels may
>>> dance on the head of a pin.
>>
>> As angels are pure spirits, the answer is obvious: an infinite number.
>
> Your certainty is a bit frightening.
>
> Who knew that there were an infinite number of angels? There's not an
> infinite number of gods, nor sons of god, nor Satans nor grains of
> sand in the ocean, yet there are an infinite number of angels.
>
> Hmm. Is there a corresponding infinite number of demons?
>
> Is that something god told you directly (Oops. Wrong Bob. Sorry!),
> your reasoned opinion or one of those "facts" that the rest of us just
> don't have the intellect to deduce?

Seems to be intellect. It's a question of room, not availability.

bl



--
Music, books, a few movies
LombardMusic
http://www.amazon.com/shops/A3NR...