2017-06-30 08:25:17 +00:00
|
|
|
From 9bb040a9ae29e1b5afcb674c74f107114b316818 Mon Sep 17 00:00:00 2001
|
2010-07-29 18:04:41 +00:00
|
|
|
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
|
|
|
Date: Thu, 29 Jul 2010 19:25:32 +0200
|
2016-12-18 11:54:48 +00:00
|
|
|
Subject: [PATCH 3/3] allow 30x redirections
|
2010-07-29 18:04:41 +00:00
|
|
|
|
|
|
|
---
|
2016-12-18 11:54:48 +00:00
|
|
|
lib/curl_transport/curltransaction.c | 4 ++++
|
2012-07-01 12:16:54 +00:00
|
|
|
1 file changed, 4 insertions(+)
|
2010-07-29 18:04:41 +00:00
|
|
|
|
|
|
|
diff --git a/lib/curl_transport/curltransaction.c b/lib/curl_transport/curltransaction.c
|
2017-06-30 08:25:17 +00:00
|
|
|
index f0aafae..b5392a9 100644
|
2010-07-29 18:04:41 +00:00
|
|
|
--- a/lib/curl_transport/curltransaction.c
|
|
|
|
+++ b/lib/curl_transport/curltransaction.c
|
2016-12-18 11:54:48 +00:00
|
|
|
@@ -671,6 +671,10 @@ setupCurlSession(xmlrpc_env * const envP,
|
2010-07-29 18:04:41 +00:00
|
|
|
curl_easy_setopt(curlSessionP, CURLOPT_POST, 1);
|
2012-07-01 12:16:54 +00:00
|
|
|
curl_easy_setopt(curlSessionP, CURLOPT_URL, transP->serverUrl);
|
2010-08-03 08:12:50 +00:00
|
|
|
|
2010-07-29 18:04:41 +00:00
|
|
|
+ curl_easy_setopt(curlSessionP, CURLOPT_FOLLOWLOCATION, 1);
|
|
|
|
+ curl_easy_setopt(curlSessionP, CURLOPT_MAXREDIRS, (long)10);
|
|
|
|
+ curl_easy_setopt(curlSessionP, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
|
|
|
+
|
2012-07-01 12:16:54 +00:00
|
|
|
XMLRPC_MEMBLOCK_APPEND(char, envP, transP->postDataP, "\0", 1);
|
2010-07-29 18:04:41 +00:00
|
|
|
if (!envP->fault_occurred) {
|
2010-08-03 08:12:50 +00:00
|
|
|
curl_easy_setopt(curlSessionP, CURLOPT_POSTFIELDS,
|
|
|
|
--
|
2017-06-30 08:25:17 +00:00
|
|
|
2.13.1
|
2010-08-03 08:12:50 +00:00
|
|
|
|