[66785] trunk/base/src/pextlib1.0/curl.c
raimue at macports.org
raimue at macports.org
Thu Apr 22 16:55:25 PDT 2010
Revision: 66785
http://trac.macports.org/changeset/66785
Author: raimue at macports.org
Date: 2010-04-22 16:55:23 -0700 (Thu, 22 Apr 2010)
Log Message:
-----------
pextlib1.0: Add cookie jar to curl, fixes #24584
Modified Paths:
--------------
trunk/base/src/pextlib1.0/curl.c
Modified: trunk/base/src/pextlib1.0/curl.c
===================================================================
--- trunk/base/src/pextlib1.0/curl.c 2010-04-22 23:50:41 UTC (rev 66784)
+++ trunk/base/src/pextlib1.0/curl.c 2010-04-22 23:55:23 UTC (rev 66785)
@@ -253,6 +253,13 @@
break;
}
+ /* echo any cookies received on a redirect */
+ theCurlCode = curl_easy_setopt(theHandle, CURLOPT_COOKIEJAR, "/dev/null");
+ if (theCurlCode != CURLE_OK) {
+ theResult = SetResultFromCurlErrorCode(interp, theCurlCode);
+ break;
+ }
+
/* -f option */
theCurlCode = curl_easy_setopt(theHandle, CURLOPT_FAILONERROR, 1);
if (theCurlCode != CURLE_OK) {
@@ -499,6 +506,13 @@
break;
}
+ /* echo any cookies received on a redirect */
+ theCurlCode = curl_easy_setopt(theHandle, CURLOPT_COOKIEJAR, "/dev/null");
+ if (theCurlCode != CURLE_OK) {
+ theResult = SetResultFromCurlErrorCode(interp, theCurlCode);
+ break;
+ }
+
/* -f option */
theCurlCode = curl_easy_setopt(theHandle, CURLOPT_FAILONERROR, 1);
if (theCurlCode != CURLE_OK) {
@@ -680,6 +694,13 @@
break;
}
+ /* echo any cookies received on a redirect */
+ theCurlCode = curl_easy_setopt(theHandle, CURLOPT_COOKIEJAR, "/dev/null");
+ if (theCurlCode != CURLE_OK) {
+ theResult = SetResultFromCurlErrorCode(interp, theCurlCode);
+ break;
+ }
+
/* -f option */
theCurlCode = curl_easy_setopt(theHandle, CURLOPT_FAILONERROR, 1);
if (theCurlCode != CURLE_OK) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100422/54a60f12/attachment.html>
More information about the macports-changes
mailing list