cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: http post

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 20 Mar 2002 23:45:23 +0100 (MET)

On Wed, 20 Mar 2002, Manuel Gavina wrote:

> I'm using libcurl to do a http post, postting a binary file to a server
> Apache running in Windows, with a cgi page. When I encode my file, because
> of the special chacters the file takes mores bytes.

Yes, that's quite natural.

> When received the file is size is equal to is size when encoded and
> before I do a post, what to I want to do so that my file size should be
> equal to the original?

Well, how do you receive the post? Why don't you decode the received data?

> The error is in my cgi page or in any CURLOPT that I use?

Since you encode the data before you send it, you must decode it when you've
received it.

Or am I misunderstanding something here?

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-03-21