Here is the curl command line that works:
curl --basic --user <user>:<pasword> --insecure --cacert empty -v -T
I have to use the cacert option to get around some bug that appears to
be in the windows version of the command line client.
Here is a simplied put-only version of my code (results are the same
for the bigger version)::
def __init__(self, f):
self.f = f
def read_callback(self, size):
line = self.f.read(size)
fs = os.path.getsize('30MIN20050201.CSV')
c = pycurl.Curl()
This code would seem to be the same as the commandline but its not
working. curl.exe and the libcurl being used by pycurl are both
On Wed, 9 Feb 2005 16:19:18 +0100 (CET), Daniel Stenberg
> On Wed, 9 Feb 2005, jason kratz wrote:
> > I found out some other information using getinfo. I set the infilesize and
> > this number is 99460 bytes. I checked that with content_length_upload.
> > getinfo size_upload only returns 96484 so the full file isn't being
> > transferred and that must be why I'm getting the 400 return code.
> Perhaps if you show us your python code and the curl command line you used, we
> could spot the problem or help you out where to debug.
> Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
> Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-02-09