Showing posts with label excuse. Show all posts
Showing posts with label excuse. 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

Thursday, March 22, 2012

Newbies questions

Hi guys, first of all please excuse me if I post this topic in the wrong section. I have two questions. First of all I am new in web development and I really want to learn asp.net, one thing I am not sure of is that, what is the the languages that I need to learn before learning asp.net? currentlly I am all most done with HTML and CSS, is there anything I need to learn also? XML maybe?

Another thing is that, I know that I can use C sharp or VB with ASP.net. should I learn C sharp or VB before ASP.net or after?

And thank you in advance.

Please take a look at this pagehttp://asp.net/getstarted/default.aspx?tabid=61

and sure you need to learn C# or VB before


learning ASP.NET and VB.NET ( C#) goes simulantenously.....

because whenever you create web-forms , you need to write inline code or code behind to execute form for various things like validation of data,insertion,deletion etc.

HTML & CSS is used only in User Interface layer, there are other layes involved like Business layer,Database layer...

for you best is to start from here :

http://quickstarts.asp.net/QuickStartv20/aspnet/doc/

start with all kinds of server controls....

all the best !


Hi,

In my opinion, both of the VB and C# are good, you can choose the one you like better. They are supported by the CTS of .NET Framework. They have the same FCL in the .NET Framework. The difference between them is just syntax. When you learn ASP.NET, you should be familiar with C# or VB. They are used to implement the business logic, and HTML and CSS are used to manipulate the presention of the page.

Here is the getting started introduction article of ASP.NEThttp://www.sitepoint.com/article/getting-started-asp-net/4

Hope it helps,

Jessica