title: XML file to POST and send data back to a batch file
body: <p>i am a very new user when it comes to this. i have tried out multiple google pages to try and understand how to do this, but have failed.</p>
  
  <p>I am trying to create a batch file to run a program with a few parameters filled in, but with getting one parameter it requires a token, which is recieved in HTTP.
  What i have found i need to do (correct me if i'm wrong) is that i run a XML file (also sending some data to the xml file from the batch file) from the batch file , and send back a certain part ('token') to the batch file.</p>
  
  <p>I am not sure what to put in the batch to actually run the xml file, or what to put to get the data back from it.</p>
  
  <p>The http request header :</p>
  
  <pre><code>POST /api/login/ HTTP/1.1 
  Host: toontowninfinite.com
  Accept: */*
  Content-Length: 33
  Content-Type: application/x-www-form-urlencoded
  </code></pre>
  
  <p>and i want the request data to be </p>
  
  <pre><code>n=&lt;username i specify in the batch file&gt;&amp;p=&lt;password i specify in the batch file&gt;&amp;dist=test
  </code></pre>
  
  <p>then the thing it copies back would be the token field here </p>
  
  <pre><code>{"success":true,"token":"&lt;mytoken-confidential&gt;"}
  </code></pre>
  
  <p>Thanks for any help given</p>