Forum Discussion
Lars_Terje_Vaal
Nimbostratus
Oct 31, 2007HTTP::method. Can it be changed?
Hi. I need to change the http method from POST to GET in a request. Is it possible?
Lars_Terje_Vaal
Nimbostratus
Nov 02, 2007I found the solution now on how to do a HTTP::retry if the request method is POST
when HTTP_REQUEST {
set orginal_request [HTTP::request]
HTTP::collect [HTTP::header "Content-Length"]
if {$isRetry} {
HTTP::header replace Content-Length "0"
HTTP::payload replace 0 0 $payloadReq
set isRetry 0
}
}
when HTTP_REQUEST_DATA {
set payloadReq [HTTP::payload]
}
when HTTP_RESPOND {
if {some condition} {
HTTP::retry $orginal_request
set isRetry 1
}
}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