curl-and-python

Re: pycurl and thomson grass valley k2 FTP servers

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 Nov 2009 08:51:15 +0100 (CET)

On Tue, 3 Nov 2009, Shailesh Kumar wrote:

> Sorry for replying back on this thread after quite delay. We were able to
> connect up with the K2 server people. They suggested that adding some more
> options would be required for accessing files using PyCURL. Here is a brief.

That's kind of them, but the list of options they provided didn't really make
any sense. Possibly they and you had different degrees of success due to
different libcurl versions or something. See my explanations of the specific
options below:

> c.setopt(c.FTP_USE_EPSV, 1)

That's default.

> c.setopt(c.QUOTE, ['TYPE I'])

That's default

> c.setopt(c.CONNECTTIMEOUT, 30)

That doesn't alter what libcurl sends or receives, only how long it'll wait
for a connect to succeed.

> c.setopt(c.TIMEOUT, 300)

This just sets a limit for how long a single request/transfer may take.

> c.setopt(c.NOSIGNAL, 1)

This only makes libcurl avoid the use of signals for timing out slow name
resolves.

> c.setopt(c.WRITEDATA, fp)

That's used for the write callback.

-- 
  / daniel.haxx.se
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2009-11-03