Convert curl command to BIG-IP Monitor Send String
Updated Jun 06, 2023
Version 3.0Was this article helpful?
Hi I tried this but health monitoring is showing down, Logs says its a malformed request
this is my curl command which works as expected:
curl -X POST -H 'content-type: application/json' -H 'host: host.domain.com' -d '{"queryParam":"cleaning","start":"0","rows":"20","searchType":["ALL"],"facetSelection":["SC:catalogs"],"userRoles":[""]}'
here is the equivalent send string created using the script which is not working:
POST /globalSearch/basicSearch HTTP/1.1\r\ncontent-type: application/json\r\nhost: host.domain.com\r\n\r\n{\“queryParam\“:\“cleaning\“,\“start\“:\“0\“,\“rows\“:\“20\“,\“searchType\“:[\“ALL\“],\“facetSelection\“:[\“SC:catalogs\“],\“userRoles\“:[\“\”]}
Can anyone find out what the issue is?