How to reset/unset cURL options?

Matthias <[email protected]> Mon, 04 Apr 2011 17:53:17 +0200
Newsgroups gmane.comp.web.curl.php
Message-ID <1301932397.4340.13.camel@ubuntu>
Hello,

how can i reset/unset curl options?

if i set this option:

curl_setopt($ch, CURLOPT_FTPPORT, NULL);

php-curl send a PORT command to the ftp server, but i want to use PASV.

Please don't answer i should not set this option to solve the problem,
because it is possible that i make multiple requests and reuse the curl
handle. What is if i want a PORT command in the first request, than
reuse the curl handle, and a PASV command in the second request?

Why is there no CURLOPT_FTPPASV option ?

I have the same problem with other options like CURLOPT_COOKIEJAR. It is
impossible to reset/unset this options for a second request :/

NULL should reset/unset a option! Why does it not work?


_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php