curl-and-python

Re: pycurl and cookies

From: Kjetil Jacobsen <kjetilja_at_gmail.com>
Date: Mon, 19 Feb 2007 20:34:23 +0100

hi,

if you are using curl 7.16.1, there is a new option called '--libcurl'
which outputs libcurl compatible source code which behaves similar to
the commandline tool. you can use this source code to figure out
which options to set in pycurl.

regards,
    - kjetil

On 2/17/07, Christopher Lucas <clucas916_at_gmail.com> wrote:
> Hello,
>
> I figured out that to download the file i wanted i had to use cookies
> from accessing the site, i was able to download the file from the
> command line with this syntax:
>
> curl -b Library/Application\ Support/Firefox/Profiles/
> ogp8xwki.default/cookies.txt http://example.org/file.txt -O
>
> Now i want to include this in my python script, can someone please
> show me how to do this.
>
> -Chris
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2007-02-19