I want to hit an API having url as below
http://xxxxxxxxx:5234/service/index.php?abc=xyz
This API consumes content-type: application/xml, request method is POST, I am sending xml body in request and able to fetch it in API as well but I am not able to fetch value of query param "abc". I can't make any change in API because it's a remote API. when I try to hit the API with postman or curl command with same url as above it's working fine and giving me xml response. but through my java code I am not able to hit above url. I can hit only following url http://xxxxxxxxx:5234/service/index.php . Please help
My application is using grizzly HTTP client-server framework. Below is the HTTP request fields I have configured in my JSON file used by application to send request.
"dispatch": {
"type": "HTTP",
"host": "http://xxxxxxxxx:5234/service/index.php?abc=xyz",
"method": "POST",
"connect-timeout": 10,
"content-key": "content", //this is request body
"http-headers": {
"Authorization": "Basic SUNNU19uZXcgSWNNJDEyMzQ=",
"Content-Type": "application/xml"
}
}