cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Upload Data in ASCII format using HTTP Protocol

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 9 Jan 2004 15:05:30 +0100 (CET)

On Fri, 9 Jan 2004, Pravin Jade wrote:

> I am uploading a file to server running under Solaris using HTTP Protocol
> and LibcURL DLL.

And by "uploading", you mean POST?

> At now, it is being transffered in binary format (Default). I want to
> transfer data in ASCII format using HTTP Protocol.

In HTTP there is no such difference. You can't "upload" anything in HTTP as
"binary" or "ascii". That's an FTP analogy that doesn't exist in HTTP.

If you need a conversion to be made, then convert it before you send it or
when you receive it.

> In documentation, I read CURLOPT_TRANSFERTEXT option. But I think it is only
> for FTP Protocol.

Yes.

> Does anyone know LibcURL option for ASCII format data transfer using HTTP ?

There is none.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
Received on 2004-01-09