title: How to download a file in Jmeter with just the original file content?
body: <p>I'm working on functional testing of a REST API using Jmeter and JSON.  I've got file uploading working but I cant seem to get the file downloading to work in jmeter.  I'm saving the response as noted in this post: <a href="https://stackoverflow.com/questions/8676249/jmeter-file-upload-and-file-download-scenario?rq=1">JMeter - File upload and file download scenario</a></p>
  
  <p>When I do this, I am getting close but not quite exactly what I need.  This is and example of what I am getting:</p>
  
  <pre><code>--0rVAdzesdQq7VrwJaRoYGm_UHdMD5nhi9_5w4u
  Content-Disposition: form-data; name="api-test"; filename="LIBFILE1.txt"
  Content-Type: text/plain
  Content-Transfer-Encoding: binary
  
  Library File for Automated Smoke Test
  
  This file is used to test file library upload for automated smoke tests.
  --0rVAdzesdQq7VrwJaRoYGm_UHdMD5nhi9_5w4u--
  </code></pre>
  
  <p>How can I get the download to only save the file contents?  In this example, it should only be:</p>
  
  <pre><code>Library File for Automated Smoke Test
  
  This file is used to test file library upload for automated smoke tests.
  </code></pre>
  
  <p>This is a simple textfile.  I would also like to download the other formats that I'm uploading including jpg, png, docx, pdf but it wont be right if it has this extra data coming with it.  I figure once I get a simple text file working, it will help me get the more difficult file types.</p>