Forum Discussion
Stefano_E__1814
Nimbostratus
Feb 19, 2015Get value from HTTP POST request body
Hi all,
I can retrieve the value of the JSON boby for HTTP POST request.
This is the call to F5: curl --insecure -H "Content-type: application/json" -H "Content-Length: 92" -X POST -d '{ ...
Stefano_E__1814
Nimbostratus
Feb 19, 2015Thx.
I put your code in my iRule and it run correctly.
There is only a problem. If there is a new line in the JSON, the "parsing" doesn't work correctly.
This is the JSON that creates problems:
{ "username" : "abc",
"password" : "def" }
How can I remove the new line in the JSON (therefore in the payload)?
Thx again, Stefano
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
