Forum Discussion
jtalkington_476
Nimbostratus
Oct 22, 2010Reading HTTP::uri with a pound sign
Trying to add to a redirect rule that triggers on the uri of
/Offerings/Pages/DeliveryMethods.aspx?PageView=Sharedtable
As you can see, there's a sign near the end of the string. I'm aware that the HTTP::uri variable reads up to the sign and then won't read the rest. Is there a variable i can use, or a way to script the HTTP::uri variable to ignore the as a comment when it reads in the string?
2 Replies
- hoolio
Cirrostratus
The string after the hash is an anchor tag. HTTP user agents aren't supposed to include the anchor in the URI in requests. So it's not that HTTP::uri strips it off--the browser generally does. You can verify this behavior by using a browser plugin like HttpFox for Firefox or Fiddler.
Here's a quick confirmation using curl to make a command line request to the virtual server and logging of the HTTP::uri value:
curl -v '1.1.1.1/test.123'
< HTTP_REQUEST>: /test.123
curl -v '1.1.1.1/test.123my_anchor'
< HTTP_REQUEST>: /test.123my_anchor
Aaron - jtalkington_476
Nimbostratus
Excellent information! Thank you for the quick feedback!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
