Showing posts with label http. Show all posts
Showing posts with label http. Show all posts

Thursday, March 29, 2012

newbie: HTTP and URIs

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
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 S 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
>

newbie: HTTP and URIs

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

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

Friday, March 16, 2012

Newsgroups in ASP.NET forums??

Hi!

does the ASP.NET forums support newgroup in the forums? (gateways)

like http://www.dbforums.com/f23/ does?

when yes, are some forums anywhere only that are newsgroups 'gateways' ??

regards,

gicioHi,

I just know that www.developersdex.com does.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
and forums that use www.asp.net ?

regards,

gicio

"Natty Gur" <natty@.dao2com.com> wrote in message
news:#ByDjr2pDHA.2232@.TK2MSFTNGP09.phx.gbl...
> Hi,
> I just know that www.developersdex.com does.
> Natty Gur[MVP]
> blog : http://weblogs.asp.net/ngur
> Mobile: +972-(0)58-888377
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
Not yet. The new version, version 2.0 of the ASP.NET forums will support Nntp.

Regards,
Wim Hollebrandse
http://www.wimdows.net
http://www.wimdows.com

--
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/