|
-
February 8th, 2000, 09:23 AM
#1
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?
-
February 8th, 2000, 10:06 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|