cURL / Mailing Lists / curl-library / Single Mail


Re: PyCURL interface - Uploading large binary files

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

*** This mailing list is moving ***
*** ***
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 ( 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 -- --
   [[ 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.
Received on 2004-02-05