Forum Discussion

Guilherme's avatar
Guilherme
Icon for Nimbostratus rankNimbostratus
May 30, 2019

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

2 Replies