Link to home
Create AccountLog in
Avatar of Seven price
Seven priceFlag for United States of America

asked on

read url

Ok here is my dilima I am trying to read an absolute url from a browser but the problem is

when I use
Request.Url.AbsolutePath.Substring
Request.Url.OriginalString
or
Request.Url.AbsoluteUri

I still cannot pull the url in the browser url bar because the the last consulting company using url rewrite so I only pull the real url not the one in the browser bar, And I need the one in the browser bar to work with my function. any suggestions
Avatar of Jens Fiederer
Jens Fiederer
Flag of United States of America image

You might want to look at the  HttpRequest ..::.UrlReferrer field, to see where you CAME from.

But you don't have direct access to the browser, only the message that came to your server.
Avatar of Seven price

ASKER

Well i do have direct access but I do not want to modify there code this is just a quick fix.
is there anyway I can pull the action value from the form tag in vb??

that will fix my problem
ASKER CERTIFIED SOLUTION
Avatar of Jens Fiederer
Jens Fiederer
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Specifically, if the original form said <form action="<url".....

the URL there only tells the browser where to send the request, the request need not contain that URL.

You can use something like "Fiddler" to see the actual text of the messages that are sent.
Avatar of Nasir Razzaq
Try the Request.Path and Request.PathInfo properties.
>>Request.Path and Request.PathInfo
No this only returns the actuall default file name not the url


>><form action="<url". how can i response.write this??
jensfiederer:>> I seen the actual thats why I posted.

Is there a way to see the  form action="value"
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
jensfiederer:>> do you have example code
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Happy holidays