curl-and-python

Re: http persistence in pycurl

From: Konstantinos Botsaris <cosbots_at_gmail.com>
Date: Fri, 8 Jul 2011 13:30:37 +0100

On 8 Jul 2011, at 13:15, Daniel Stenberg wrote:

> On Fri, 8 Jul 2011, Konstantinos Botsaris wrote:
>
>> I just wanted to ask how to implement the http persistence with pycurl. Is it done by maintaining a single curl object on which I just change the url (on the same server) and calling perform again ?
>
> Eaxctly so.
>
>> Furthermore is there a way to set the timeout option to no timeout for a curl object that timeout was set previously in a value in order to maintain the same curl object?
>
> The timeout value you set is a maximum time for a request, so a subsequent request on the same handle will thus use the same timeout value. You can reset a timeout back to "no timeout" by setting the value to 0.
>
> --
>
> / daniel.haxx.se
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python

Thanks Daniel for the quick response! I have another one small question regarding curl object requests through SOCKS5 proxies to web servers. Are there any other options to set for the curl object except from the standard(proxy address,authorisation etc) to support persistent connections through the proxies to the web servers or this is established by default?
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2011-07-08