title: curl do not work if it is executed from a batch file
body: <p>I am stuck with this issue:</p>
  
  <p>I am trying to run curl using a batch file which is automatically called when password hook is running. The content of this batch file is:</p>
  
  <pre><code>curl "http://10.x.y.z/passwd.php?user=%1&amp;pass=%2" 
  </code></pre>
  
  <p>User and password are automatically read as you can see below in error log.</p>
  
  <p>But I am still receiving a <code>curl(27) out of memory ERROR</code> as you can see below:</p>
  
  <pre><code>[Wed Sep 09 12:09:42 2015]
  "C:\passwd.bat" testuser Pass@1234
  
  c:\&gt;curl "http://10.x.y.z/passwd.php?user=testuser&amp;pass=Pass@1234"
  curl: (27) Out of memory
  [Wed Sep 09 12:09:43 2015]
  </code></pre>
  
  <p>If I run the batch file from command prompt with <code>passwd.bat testuser Pass@1234</code>, everything is OK.</p>
  
  <p><strong>Curl and .bat file are running on a Windows Server 2012 R2 machine.</strong></p>
  
  <p>Do you have any ideas about how could I solve this issue?</p>