PDA

View Full Version : HTTP.Download ignores MODE_TEXT


garylyb
01-29-2006, 10:49 AM
I'm downloading a small text file from a unix host, and the new lines never get converted to cr/lf.


Here's the relevant code, looks to me like it should work:


strLocalFileName = SessionVar.Expand("%TempFolder%\\temp.txt");


strRemoteFileName = "http://www.great-stocks.info/install/currentFiles.txt";

HTTP.Download(strRemoteFileName, strLocalFileName, MODE_TEXT, 20, 80, nil, nil, fcnDownloadCallback);

error = Application.GetLastError();
.
.
.

Is something else wrong?

Thanks

Gary

Eagle
01-30-2006, 09:21 AM
just a thought, try downloading using the: MODE_BINARY instead.