title: Issues Recreating Http Headers from an older application
body: <p>I am having an issue uploading files to my server on a frontend rewrite I am working on.</p>
  <p>I am getting an error response 500 &quot;Premature end of script headers:&quot; I have my headers recreated almost exactly the same as the legacy web app I am trying to recreate with two exceptions.</p>
  <p>Backstory: I am recreating a Flash web application in Vue.js. I am using the exact same back end intact, it is Perl, cgi scripts, generally, I am able to use axios to talk to the backend scripts no problem.</p>
  <p>Current Flash Frontend: When I upload a file with the current flash app my header looks like this.</p>
  <p><a href="https://i.stack.imgur.com/hSpzc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hSpzc.png" alt="Old Header" /></a></p>
  <p>Note the highlighted text at the bottom.</p>
  <p>Replacement Vue Frontend: I see a couple differences with my new header, I don't have the Content-Type: application/octet-stream bit directly underneath the filedata part of the header. And the end of the header is &quot;--&quot; which is the convention, I am guessing the old application used some outdated header ending I can't find and doesn't know how to handle mine. Please help I could not find anything on the Google. I also note the new header has &quot;WebKitFormBoundarys&quot; not sure if that could cause an issue with some old header standards or something.</p>
  <p><a href="https://i.stack.imgur.com/IjWo5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IjWo5.png" alt="New Header" /></a></p>