title: Why does remote multipart form submission fail without attaching a file?
body: <p>I'm experiencing an issue with an API call using <code>POST</code> and <code>multipart/form-data</code>. When a file is attached in the form, the call succeeds (<code>200</code>). When no file is attached (<code>500</code>), modsecurity throws this error:</p>
  
  <pre><code>[:error] [pid 25114] [client ##REMOVED##] ModSecurity: Access denied with code 44 (phase 2). 
  Match of "eq 0" against "MULTIPART_STRICT_ERROR" required. 
  [file "/etc/modsecurity/modsecurity.conf"] [line "75"] [id "200002"] [msg "Multipart request body failed strict validation: PE 0, BQ 0, BW 0, DB 0, DA 0, HF 0, LF 1, SM 0, IQ 0, IP 0, IH 0, FL 0"] [hostname "##REMOVED##"] [uri "/user/update/2"] [unique_id "U9adUn8AAAEAAGIaaD0AAAAL"]
  </code></pre>
  
  <p>It is related to <code>LF 1</code> which says <code>LF line ending detected</code>. I cannot seem to find a solution via the internet. Any help is greatly appreciated.</p>
  
  <hr>
  
  <p>Payload</p>
  
  <pre><code>--ARCFormBoundaryxh3pgpzljl9pb9
  Content-Disposition: form-data; name="IPHONE"
  
  TRUE
  --ARCFormBoundaryxh3pgpzljl9pb9--
  </code></pre>
  
  <p>Response </p>
  
  <pre><code>500 Internal Server Error Show explanation Loading time: 62
  </code></pre>
  
  <p>Request headers </p>
  
  <pre><code>Pragma: no-cache 
  Cache-Control: no-cache 
  Origin: chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo
  User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36
  Content-Type: multipart/form-data; boundary=ARCFormBoundaryxh3pgpzljl9pb9 
  Accept: */*
  DNT: 1
  Accept-Encoding: gzip,deflate,sdch
  Accept-Language: en-US,en;q=0.8
  Cookie: f98626d360511c4d14fb97c2ea504334=273bbf84cc9e30bb710feff2121ab98fbe870dc4a%3A4%3A%7Bi%3A0%3Bs%3A1%3A%221%22%3Bi%3A1%3Bs%3A25%3A%22REMOVED%40gmail.com%22%3Bi%3A2%3Bi%3A2592000%3Bi%3A3%3Ba%3A1%3A%7Bs%3A5%3A%22email%22%3Bs%3A25%3A%22REMOVED%40gmail.com%22%3B%7D%7D; PHPSESSID=lgukufu1vcf48kf8n999m3lvr5; dcjq-accordion-1=6
  </code></pre>
  
  <p>Response headers </p>
  
  <pre><code>Date: Mon, 28 Jul 2014 18:54:57 GMT 
  Server: Apache/2.4.7 (Ubuntu) 
  Content-Length: 616 
  Keep-Alive: timeout=5, max=99
  Connection: Keep-Alive
  Content-Type: text/html; charset=iso-8859-1 
  </code></pre>
  
  <p>Response</p>
  
  <pre><code>Internal Server Error
  
  The server encountered an internal error ormisconfiguration and was unable to completeyour request.
  
  Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
  
  More information about this error may be availablein the server error log.
  </code></pre>