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...
Cole_Libby_1665
Feb 20, 2007Altostratus
Are there any restrictions for replacing the header portion of the POST.
My code seems to blank it out altogether.
if { $method equals "POST"} {
log local0. "----------------------------"
set method [HTTP::method]
log local0. "method = $method"
log local0. [HTTP::header POST]
set newpost [concat $path$basename HTTP/1.1]
log local0. "newpost = $newpost"
HTTP::header replace "POST" $newpost
log local0. "POST + [HTTP::header POST]"
log local0. "----------------------------"
}
Which generates:
Feb 20 18:43:39 tmm tmm[12387]: Rule IAJB : ----------------------------
Feb 20 18:43:39 tmm tmm[12387]: Rule IAJB : method = POST
Feb 20 18:43:39 tmm tmm[12387]: Rule IAJB : //stgws04.nyenet.state.ny.us/siteminderagent/dmsforms/doLogin.fcc HTTP/1.0
Feb 20 18:43:39 tmm tmm[12387]: Rule IAJB : newpost = /siteminderagent/dmsforms/doLogin.fcc HTTP/1.1
Feb 20 18:43:39 tmm tmm[12387]: Rule IAJB : POST +
Feb 20 18:43:39 tmm tmm[12387]: Rule IAJB : ----------------------------
Cole
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