cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PyCURL interface - Uploading large binary files

From: Jesse Noller <jnoller_at_archivas.com>
Date: Thu, 05 Feb 2004 08:00:44 -0500

*** This mailing list is moving ***
*** http://curl.haxx.se/mail/ ***
On Thu, 2004-02-05 at 05:14, Daniel Stenberg wrote:
> 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.)
>

My apologies - I am adjusting my membership accordingly.

> > 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.

I'll look into that - using easy setopt for Libcurl, what is the proper
way to set the variables so that it does a -T option instead of the form
post?

-------------------------------------------------------
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