I am trying to use httprequest to obtain the data in a plain text file. Not an HTML file.
I can get the file but it loses its formating. Is there any way to preserve the formating when getting a text file in this manner?
I don't want to open the file and select all, copy and paste, I want it to silently get the data. What it appears to be is just figuring out what hapens to the Carrigage returns and line feeds and replacing them.
The sample code is below, in order to test it the folder c:\temp must be present
DeleteFile>c:\temp\testpullsite.txt
HTTPRequest>http://www.eia.doe.gov/pub/oil_gas/petr ... MLResponse
StringReplace>%HTMLResponse%,%CR%,%CRLF%,HTMLResponse
Writeln>c:\temp\testpullsite.txt,result,%HTMLResponse%
ExecuteFile>c:\temp\testpullsite.txt,result