#3 Allow reseting of some list based options

closed
nobody
None
5
2008-04-23
2007-07-31
Jim Patterson
No

I have a need to be able to reset some of the list
based options (POSTQUOTE, QUOTE, PREQUOTE). I
tried just passing in an empty list [], and that
did not raise an error, but it also did not work.

Looking into the code I saw that empty lists are
just ignored, but for most of the list based options
calling curl_easy_setopt with a NULL will reset
the option, so I made a patch to do that for options
that are supported.

This patch was tested on AIX with curl 7.16.2.

Thanks for creating and support this python module.

Discussion

  • Jim Patterson
    Jim Patterson
    2007-07-31

    Patch file for clearing list based fields

     
  • Logged In: YES
    user_id=5685
    Originator: NO

    Thanks, checked into pycurl cvs.

     
    • status: open --> closed