cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PyCURL interface - Uploading large binary files

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 5 Feb 2004 11:14:22 +0100 (CET)

*** This mailing list is moving ***
*** http://curl.haxx.se/mail/ ***
On Wed, 4 Feb 2004, Jesse Noller wrote:

(I'm cc'ing this to the libcurl list, as that is better place to discuss
libcurl-usage, even when you're using a particular binding.)

> c.setopt(c.HTTPHEADER, ["User-Agent: Load Tool (PyCURL Load Tool)"])
> c.setopt(c.PUT, 1)
> c.setopt(c.READDATA, f)

...

> The verbose output from the session is:
>
> * About to connect() to target:8080
> * Connected to target.foobar.com (10.1.1.6) port 8080
> > POST /put HTTP/1.1

...

> Content-Type: multipart/form-data; boundary=----------------------------46b3250c0a30

This is clearly not doing a PUT, this is a multi-part formpost. This also
explains the memory usage you're seeing, as libcurl creates the full formpost
in memory before it sends it off.

This looks like a pycurl problem to me.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-02-05