Parsing URI

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using VB.NET. Trying to parse the incoming URI for an HTTP request. Appears that supposed to use "GetQueryString", "GetRawUrl", etc. However, can find no examples of how this is to work. Can anyone provide a code fragment. Or, is this an incorrect approach. Thanks.
 
Why not just use the Page.Response.Url property?


Tom_B said:
Using VB.NET. Trying to parse the incoming URI for an HTTP request.
Appears that supposed to use "GetQueryString", "GetRawUrl", etc. However,
can find no examples of how this is to work. Can anyone provide a code
fragment. Or, is this an incorrect approach. Thanks.
 
Hi Tom

Can you be more specific as to what you are trying to do

Also may be a code snippet will work better for us to understand the problem

? ? ?

Kashyp
Aztec Software and Technology Services Ltd
Bangalore
 
Need to respond to the incoming HTTP request based on the "Query" part of the URL. Cannot find how to access the incoming URL.
 
Asp.Net does not do this if I understand you correctly. The form your client
sends already hosts server components such as Text Boxes and your code
behind will be able to access these objects directly on the asp.aspx forms.
What you are referring to is "CGI/ISAPI" scripts that captures the payload
sent by the clients via GET/POST commands.

John

Tom_B said:
Need to respond to the incoming HTTP request based on the "Query" part of
the URL. Cannot find how to access the incoming URL.
 
Tom_B said:
Need to respond to the incoming HTTP request based on the "Query"
part of the URL. Cannot find how to access the incoming URL.

You can obtain the query string through HttpRequest.QueryString.

Cheers,
 
Back
Top