Forum Discussion
bdo_isd_28658
Feb 20, 2007Nimbostratus
iRule for replacing string in HTTP POST
I am having trouble even getting started on this iRule and would love some help.
We have an application (TAM) that is sending an incorrect HTTP POST to a back end application (APEX). We nee...
hooleylist
Feb 20, 2007Cirrostratus
Using the original poster's request example with a request line of "POST /pls/htmldb/wwv_flow.accept HTTP/1.1", the request method is POST, which you can get/set using [HTTP::method]. The URI (in f5's terminology) is /pls/htmldb/www_flow.accept, which you can get/set using [HTTP::uri]. The version is 1.1, which you can get/set using [HTTP::version].
I didn't expect the HTTP::header command to actually work against the request line. It looks like TMM might be seeing "POST http://..." and parsing it as a header by grabbing everything up to the ":". That's just a guess though, seeing as the value of that header is "//stgws04.nyenet.state.ny.us/siteminderagent/dmsforms/doLogin.fcc HTTP/1.0"
If you want to modify the request method, the URI or the version, you should be able to use the individual HTTP:: commands to do so (HTTP::method, HTTP::uri, HTTP::version). I think this would actually be simpler if you're just trying to change the version of the request.
Aaron
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