Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    7

    HTTP.Download ignores MODE_TEXT

    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

  2. #2
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    just a thought, try downloading using the: MODE_BINARY instead.

Similar Threads

  1. Problem with HTTP.Download on Win98 and WinME
    By ineb in forum Setup Factory 7.0
    Replies: 8
    Last Post: 02-28-2006, 10:35 AM
  2. HTTP.Download question
    By drougnor in forum Setup Factory 7.0
    Replies: 3
    Last Post: 12-21-2005, 01:02 AM
  3. HTTP.Download very slow???
    By nrgyzer in forum AutoPlay Media Studio 6.0
    Replies: 4
    Last Post: 12-06-2005, 03:08 AM
  4. HTTP.Download function - Updated...
    By Intrigued in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 06-04-2005, 05:41 PM
  5. Example: HTTP.Download function
    By Intrigued in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 06-04-2005, 12:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts