Forum Discussion
HTTP Monitor - Post Method
Hi guys,
Im trying to setup a HTTP monitor with POST method, when I sent it through curl the response from the server is 200|OK but when I try to covert it to string Im getting 500 internal error..
Curl (returning 200 OK):
curl -X POST -sL 'http://10.10.10.10:7016/claims/v1/details/' -H 'Content-Type: application/json' -d '{"message":[48,49,48,48,48,50,51,56,48,49,48,48,48,49,67,49,48,48,48,48,48,56,49,49,48,57,52,51,51,56,49,49,48,48,48,50,48,57,52,51,51,56,48,56,49,49,48,48,48,48,48,50,83,69,48,48,48,48,48,49,70,48,48,48,48,48,48,48,48,48,48,48,48,49,54,48,49,51,69,73,48,49,51,48,50,57,53,50,49,52,53],"quantityAdminMess":0}' -m 30 -vk
Monitor send string (returning 500 error):
POST /claims/v1/details HTTP/1.1\r\nHost: 10.10.10.10:7016\r\nAccept: */*\r\nContent-Type: application/json\r\nContent-Length: 308\r\n\r\nBody={\"message\":[48,49,48,48,48,50,51,56,48,49,48,48,48,49,67,49,48,48,48,48,48,56,49,49,48,57,52,51,51,56,49,49,48,48,48,50,48,57,52,51,51,56,48,56,49,49,48,48,48,48,48,50,83,69,48,48,48,48,48,49,70,48,48,48,48,48,48,48,48,48,48,48,48,49,54,48,49,51,69,73,48,49,51,48,50,57,53,50,49,52,53],\"quantityAdminMess\":0}
I tried to change the string many times but got no success, can someone please help me ?
Thanks
Hello Guilherme.
The best way to troubleshoot this is to use tcpdump.
tcpdump -nnei 0.0 -X -s0 host 10.10.10.10 and port 7016
You can compare both messages (with monitor and curl) and see what hexadecimal code differs from another.
By the way, this doc could help you to solve this.
REF - https://devcentral.f5.com/s/articles/ltm-http-monitoring-with-post-request
KR,
Dario.
- HamishCirrocumulus
Sorry, where did the
Body=
bit come from in your monitor version?
Recent Discussions
Related Content
* 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