I'm quite new to this, so please excuse trivial questions:
- Is there any function (int the .net framework) that gives me an
enumeration of all URIs in a http stream (passed as e.g. a string)? If not,
how could I achieve such a thing?
- Really trivial, but to make sure: What does the string "/.../" in an URL
mean? I'd suspect some directory operation, but I dunno exactly...
- I'm currently using the HttpUtility.UrlDecode() function to decode some
http URIs and one thing stroke me in particular: The string
[...]"test.exe?/c+xtsr" is decoded to "test.exe?/c xtsr", missing the "+".
When I use the System.Uri class for the decoding the "+" remains...Does
anyone know why?
Thanks for reading till end and thanks in advance
PeterHi Peter,
No question is trivial if you don't know the answer to it! :)
> - Is there any function (int the .net framework) that gives me an
> enumeration of all URIs in a http stream (passed as e.g. a string)? If
> not,
> how could I achieve such a thing?
Not sure what you mean by this. You can find URLs in an HTML document by
using Regular Expressions. The HTML document is a string.
> - Really trivial, but to make sure: What does the string "/.../" in an
> URL
> mean? I'd suspect some directory operation, but I dunno exactly...
Is that the exact string you saw in a URL? I've never seen it before.
The following link to the W3C should help":
http://www.gbiv.com/protocols/uri/rfc/rfc3986.html
> - I'm currently using the HttpUtility.UrlDecode() function to decode some
> http URIs and one thing stroke me in particular: The string
> [...]"test.exe?/c+xtsr" is decoded to "test.exe?/c xtsr", missing the "+".
> When I use the System.Uri class for the decoding the "+" remains...Does
> anyone know why?
The "+" character is a URL-Encoding for a space (which is an illegal URL
character).
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
"Peter Schmitz" <PeterSchmitz@.discussions.microsoft.com> wrote in message
news:A10E415D-10FA-4F56-BA27-D950B8F6BCDA@.microsoft.com...
> Hi,
> I'm quite new to this, so please excuse trivial questions:
> - Is there any function (int the .net framework) that gives me an
> enumeration of all URIs in a http stream (passed as e.g. a string)? If
> not,
> how could I achieve such a thing?
> - Really trivial, but to make sure: What does the string "/.../" in an
> URL
> mean? I'd suspect some directory operation, but I dunno exactly...
> - I'm currently using the HttpUtility.UrlDecode() function to decode some
> http URIs and one thing stroke me in particular: The string
> [...]"test.exe?/c+xtsr" is decoded to "test.exe?/c xtsr", missing the "+".
> When I use the System.Uri class for the decoding the "+" remains...Does
> anyone know why?
> Thanks for reading till end and thanks in advance
> Peter
0 comments:
Post a Comment