3cfbe1
From 255ebf4b1204124123971a3bb27741cccbb51692 Mon Sep 17 00:00:00 2001
3cfbe1
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
3cfbe1
Date: Thu, 29 Jul 2010 19:25:32 +0200
3cfbe1
Subject: [PATCH 5/8] allow 30x redirections
3cfbe1
3cfbe1
---
3cfbe1
 lib/curl_transport/curltransaction.c |    4 ++++
3cfbe1
 1 file changed, 4 insertions(+)
3cfbe1
3cfbe1
diff --git a/lib/curl_transport/curltransaction.c b/lib/curl_transport/curltransaction.c
3cfbe1
index 0f76fc2..6292aee 100644
3cfbe1
--- a/lib/curl_transport/curltransaction.c
3cfbe1
+++ b/lib/curl_transport/curltransaction.c
3cfbe1
@@ -600,6 +600,10 @@ setupCurlSession(xmlrpc_env *               const envP,
3cfbe1
     curl_easy_setopt(curlSessionP, CURLOPT_POST, 1);
3cfbe1
     curl_easy_setopt(curlSessionP, CURLOPT_URL, transP->serverUrl);
3cfbe1
 
3cfbe1
+    curl_easy_setopt(curlSessionP, CURLOPT_FOLLOWLOCATION, 1);
3cfbe1
+    curl_easy_setopt(curlSessionP, CURLOPT_MAXREDIRS, (long)10);
3cfbe1
+    curl_easy_setopt(curlSessionP, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
3cfbe1
+
3cfbe1
     XMLRPC_MEMBLOCK_APPEND(char, envP, transP->postDataP, "\0", 1);
3cfbe1
     if (!envP->fault_occurred) {
3cfbe1
         curl_easy_setopt(curlSessionP, CURLOPT_POSTFIELDS, 
3cfbe1
-- 
3cfbe1
1.7.10.4
3cfbe1