Forum Discussion
NoamRotter
Apr 17, 2016Altostratus
How to change HTTP method from OPTIONS to POST?
We have a webapp that sends a HTTP:method "OPTIONS" to another website
The other website returns 400 bad request for method OPTIONS.
If I manually change the OPTIONS to POST the transact...
Stanislas_Piro2
Apr 18, 2016Cumulonimbus
Hi,
it is not possible to change HTTP Method...
The method OPTIONS is dedicated to answer which are supported methods by the server.
try this irule to answer with the list of supported methods:
when HTTP_REQUEST {
if {[HTTP::method] equals "OPTIONS"} {
HTTP::respond 200 -version "1.1" noserver \
"Allow" "OPTIONS, TRACE, GET, HEAD, POST" \
"Public" "OPTIONS, TRACE, GET, HEAD, POST" \
"Connection" "Close"
}
}
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