title: How to send json data using inetc::post in the nsis
body: <p>I am using NSIS script for Rest API to send HTTP post with the JSON message body but unfortunately, I didn't find any solution.
  Using of query string I can implement but I need to HTTP post request with JSON  or as a raw message body.</p>
  
  <p>inetc::post "" "sampleurl.php?username=$arg1&amp;password=$arg2" "C:\output.txt" /END
  With this query string we can request http post but I need HTTP post request with JSON or a raw message body.
  I tried below command to send data to the sample url but $0 got "url parts error"</p>
  
  <p>inetc::post ""{\"a\": \"a1\",\"b\": \"" + $username + "\",\"c\": \"" + $password + "\",\"d\": \"" + Windows + "\"}"" "<a href="http://sampleURL" rel="nofollow noreferrer">http://sampleURL</a>" "C:\output.log" /END</p>
  
  <p>pop $4
  MessageBox MB_OK|MB_ICONSTOP "perfect install $4"</p>
  
  <pre><code> inetc::post "" "sampleurl.php?username=$arg1&amp;password=$arg2" "C:\output.log" /END
  </code></pre>
  
  <p>I expect output to request an HTTP post call with JSON or raw message body using nsis</p>