cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cURL producing boxes instead of carriage return

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 3 Feb 2003 22:16:36 +0100 (CET)

On Mon, 3 Feb 2003, Nathan Ziarek wrote:

> I receently posted here requesting help on the carriage returns in HTML
> document returing as little boxes instead of line breaks. I was told to run
> a command (not readily available) that would strip them from the document
> using \015 to stand for the carriage returns.

Well, you could use a different approach as well. awk, sed and perl are other
tools that would be able to do the same kind of operation. I just thought
that tr was available in the cygwin environment.

> I have tried that and it did not work. using curl on OSX does not produce
> this error; I have only seen it when running cURL on CygWin.

Well, it is not an error, not in cygwin nor in Mac OS X. curl downloads the
data as the remote server sends it, it adds nothing, it removes nothing.

> When directly exporting to the screen (instead of to a file), the line
> breaks appear to show up. When outputting to a file (using either "-o" or
> "> filename") that characters do show up.

If you use --trace, you'll get to see exactly what data the "boxes" are,
instead of only seeing my guesses.

Then you figure out what to do about them.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Received on 2003-02-03