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

Newby Question Linking of data between HTML and ASP!

Xref: TK2MSFTNGP08.phx.gbl microsoft.public.dotnet.framework.aspnet:297891
Hi:
I am an utter virgin at ASP, but have experience in HTML!
I have a very basic question.
I have an ASP sheet, where I wish to permit the user to enter a code, and th
en return the
results of a query against a table, using that code. My problem is that I do
n't quite know
how to:
A Present the end user input to the query
B. Present the results to the HTML: code.
In the query I have tried common sql techniques such as "Like{Input the code
]", but that
does not work.
I know there must be an easy way, but it too simple to show up in the materi
als I am
reading.
Can someone point me in the direction of an answer.
Thanks
John Baker> Can someone point me in the direction of an answer.
You can find an answer on the ASP ewsgroups:
microsoft.public.inetserver.asp.db
microsoft.public.inetserver.asp.general
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.
"John Baker" <Baker.JH@.Verizon.net> wrote in message
news:cccf01dcm7rb7khonngaqa95qv2o8n15sh@.
4ax.com...
> Hi:
> I am an utter virgin at ASP, but have experience in HTML!
> I have a very basic question.
> I have an ASP sheet, where I wish to permit the user to enter a code, and
> then return the
> results of a query against a table, using that code. My problem is that I
> don't quite know
> how to:
> A Present the end user input to the query
> B. Present the results to the HTML: code.
> In the query I have tried common sql techniques such as "Like{Input the
> code]", but that
> does not work.
> I know there must be an easy way, but it too simple to show up in the
> materials I am
> reading.
> Can someone point me in the direction of an answer.
> Thanks
> John Baker
Kevin:
Unfortunately Verizon does not offer them.
Any other alternatives?
John
"Kevin Spencer" <kevin@.DIESPAMMERSDIEtakempis.com> wrote:

>microsoft.public.inetserver.asp.general
This is a newsgroup. If you have Outlook Express, you have a news reader.
Using Outlook Experss's newsreader, go to the msnews.microsoft.com news
server and you'll find all of the Microsoft newsgroups.
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.
"John Baker" <Baker.JH@.Verizon.net> wrote in message
news:r2rf015ek9aq5rc9kj82ra9vgll0t6fe4u@.
4ax.com...
> Kevin:
> Unfortunately Verizon does not offer them.
> Any other alternatives?
> John
> "Kevin Spencer" <kevin@.DIESPAMMERSDIEtakempis.com> wrote:
>
>