]>
Commit | Line | Data |
---|---|---|
91f35318 | 1 | From 255ebf4b1204124123971a3bb27741cccbb51692 Mon Sep 17 00:00:00 2001 |
3671422b JB |
2 | From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> |
3 | Date: Thu, 29 Jul 2010 19:25:32 +0200 | |
91f35318 | 4 | Subject: [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 | |
10 | diff --git a/lib/curl_transport/curltransaction.c b/lib/curl_transport/curltransaction.c | |
91f35318 | 11 | index 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 | 26 | 1.7.10.4 |
3671422b | 27 |