title: Retrofit POST method not working with nginx server
body: <p>I am trying to submit my json to server with retrofit post method.</p>
  
  <p>if my server used apache server it's working but in case of nginx server it's not working ..</p>
  
  <p>I am trying to explain with dummy api.
  what am I doing?</p>
  
  <p>URL:</p>
  
  <pre><code>    https://mysite_url/3.6.2/create_dummy_data
  </code></pre>
  
  <p>Payload:</p>
  
  <pre><code>    {"access_token":"476be4412cef4a3490c2fa2cef5b4cfa","distance":"2000","credit":"200","duration":"10","competitor_id":"180"}
  </code></pre>
  
  <p>Here I am doing for handle this:</p>
  
  <pre><code>    //@headers({"Content-Type: multipart/form-data"}) this is optional
      //@headers({"Content-Type: application/json"})    this is optional
      @post(URL)
      Observable&lt;PayloadDummy&gt; dummySubmitApi(@query("payload") String s);
  </code></pre>
  
  <p>SERVER ERROR:</p>
  
  <p>with multipart header:</p>
  
  <blockquote>
    <p>[error] 6419#6419: *26 FastCGI sent in stderr: "PHP message: PHP
    Warning: Missing boundary in multipart/form-data POST data in Unknown
    on line 0" while reading response header from upstream</p>
  </blockquote>
  
  <p>without any header:</p>
  
  <blockquote>
    <p>response_status_code 500 request "POST /3.6.2/create_dummy_data
    HTTP/1.1" 180.151.5.333 - - [25/Jun/2018:11:19:17 +0000] 17730 "-"
    "okhttp/3.10.0" "-" "
    {\x22access_token\x22:\x22476be4412cef4a3490c2fa2cef5b4cfa\x22,\x22competitor_id\x22:\x22469\x22,\x22credit\x22:\x22200\x22,\x22distance\x22:\x221000\x22,\x22duration\x22:\x221\x22,\x22type\x22:\x220\x22}""-"
    "-" "-" "-"
    {\x22access_token\x22:\x22476be4412cef4a3490c2fa2cef5b4cfa\x22,\x22competitor_id\x22:\x22469\x22,\x22credit\x22:\x22200\x22,\x22distance\x22:\x221000\x22,\x22duration\x22:\x221\x22,\x22type\x22:\x220\x22}</p>
  </blockquote>
  
  <p>I have used boundary but it's not working ..</p>
  
  <p>How to solved my problem .. please suggest me..</p>
  
  <p>Issue: <a href="https://github.com/square/retrofit/issues/2802" rel="nofollow noreferrer">https://github.com/square/retrofit/issues/2802</a></p>