cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

How to reset/unset cURL options?

From: Matthias <c.madmax_at_gmail.com>
Date: Mon, 04 Apr 2011 17:53:17 +0200

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
Received on 2011-04-04