CSV File returned as attachment. How do I save this to a file?

I've recieved an attachment as a response. A part of this is shown below:

TTP/1.1 200 OK
X-Powered-By: ASP.NET
Content-Type: application/csv
Connection: close
Server: Microsoft-IIS/6.0
Date: Fri, 12 Mar 2010 15:09:11 GMT
Content-Disposition: attachment; filename="permits.csv"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Date Posted, Date Approved, County, Operator, Well Name, API Number, Work Type, Well Type, Current Status, Field, Surface Location, QTR QTR, Section, Township, Range, Elevation, Planned Depth, Proposed Zone, Directional/Horizontal, Planned Start Date, Confidential? , 07/17/2008 , UINTAH , QUESTAR

How do I save this response to a file?

Thanks for you assistance.

Thanks.

Worked well.

See this

See this method:
http://community.screen-scraper.com/API/saveFileOnRequest