CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 1999
    Posts
    14

    Help!! Problem with internet transfer control

    Help!! When I using internet transfer control to download a html source file, the downloaded html file have some special end of line characters, how can I handle this?


  2. #2
    Guest

    Re: Help!! Problem with internet transfer control

    That's because there are three possibilites:
    The DOS/Win world terminates with CRLF
    Unix LF
    Apple CR
    That's part of why browsers treat EOLs as generic whitespace.

    When uploading the files with FTP to convert from your system to the hosts send
    as ASCII, or use BINARY to leave it unchanged. The HTTP d/l later is the
    equivelant of BINARY mode.

    To handle it, d/l to a buffer, copy to a second buffer (or final destination) converting the EOLs to your preferred format, or have a browser display the results.

    Or were 0x0D and 0x0A not the special characters?


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured