title: How to send HTTP Post request with body content and query param both in Java
body: <p>I want to hit an API having url as below</p>
  
  <p><a href="http://xxxxxxxxx:5234/service/index.php?abc=xyz" rel="nofollow noreferrer">http://xxxxxxxxx:5234/service/index.php?abc=xyz</a></p>
  
  <p>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 <a href="http://xxxxxxxxx:5234/service/index.php" rel="nofollow noreferrer">http://xxxxxxxxx:5234/service/index.php</a> . Please help</p>
  
  <p>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.</p>
  
  <pre><code>"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"
              }
         }
  </code></pre>