cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Problem with binary data

From: Sharma, Amit <as230007_at_exchange.Canada.NCR.com>
Date: Fri, 31 Oct 2003 11:44:12 -0500

Thanx for this insight. I learned something about encoding. I wud assume the
problem could be either in the callback I have registered for libcurl
(something to debug) or the data actually is corrupted (Not a problem at my
side).

If there is any problem in my callback, does anybody has some suggestions on
debugging tips for something for this.

Gracias,
amit

-----Original Message-----
From: Henrik Storner [mailto:henrik-curl_at_hswn.dk]
Sent: Friday, October 31, 2003 11:25 AM
To: curl-library_at_lists.sourceforge.net
Subject: Re: Problem with binary data

On Fri, Oct 31, 2003 at 11:10:22AM -0500, Sharma, Amit wrote:
>
> I would think that encoding is necessary for the similar reason why we
> do MIME encoding/ base64 encoding prior to transmission. Though am not
> an expert to comment on this, however, we have faced problems if data
> is sent over network and involving multi OS without encoding the
> binary content.

Encoding of mails is required because the mail protocol (SMTP) explicitly
limits data to 7-bit ASCII. This restriction is not present in the HTTP
protocol, and thus no encoding is needed.

The underlying transport protocol (TCP/IP) also supports pure binary data
without any encoding. So actually mail/SMTP is the exception.

-- 
Henrik Storner <henrik_at_hswn.dk> 
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does
SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Received on 2003-10-31