]> git.pld-linux.org Git - packages/xmlrpc-c.git/blame - xmlrpc-c-30x-redirect.patch
- updated to 1.32.05 (svn rev 2451; note: new sonames of C++ libs)
[packages/xmlrpc-c.git] / xmlrpc-c-30x-redirect.patch
CommitLineData
91f35318 1From 255ebf4b1204124123971a3bb27741cccbb51692 Mon Sep 17 00:00:00 2001
3671422b
JB
2From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
3Date: Thu, 29 Jul 2010 19:25:32 +0200
91f35318 4Subject: [PATCH 5/8] allow 30x redirections
3671422b
JB
5
6---
7 lib/curl_transport/curltransaction.c | 4 ++++
91f35318 8 1 file changed, 4 insertions(+)
3671422b
JB
9
10diff --git a/lib/curl_transport/curltransaction.c b/lib/curl_transport/curltransaction.c
91f35318 11index 0f76fc2..6292aee 100644
3671422b
JB
12--- a/lib/curl_transport/curltransaction.c
13+++ b/lib/curl_transport/curltransaction.c
91f35318 14@@ -600,6 +600,10 @@ setupCurlSession(xmlrpc_env * const envP,
3671422b 15 curl_easy_setopt(curlSessionP, CURLOPT_POST, 1);
91f35318 16 curl_easy_setopt(curlSessionP, CURLOPT_URL, transP->serverUrl);
3671422b
JB
17
18+ curl_easy_setopt(curlSessionP, CURLOPT_FOLLOWLOCATION, 1);
19+ curl_easy_setopt(curlSessionP, CURLOPT_MAXREDIRS, (long)10);
20+ curl_easy_setopt(curlSessionP, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
21+
91f35318 22 XMLRPC_MEMBLOCK_APPEND(char, envP, transP->postDataP, "\0", 1);
3671422b
JB
23 if (!envP->fault_occurred) {
24 curl_easy_setopt(curlSessionP, CURLOPT_POSTFIELDS,
25--
91f35318 261.7.10.4
3671422b 27
This page took 0.059087 seconds and 4 git commands to generate.