added patch to make curl follow HTTP POST 301 redirects (#618504)
This commit is contained in:
parent
57932fabf9
commit
7a43e7f61e
26
xmlrpc-c-30x-redirect.patch
Normal file
26
xmlrpc-c-30x-redirect.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 07f7798d0b6c9b187dd6bfa567be74a224baf1fb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
||||||
|
Date: Thu, 29 Jul 2010 19:25:32 +0200
|
||||||
|
Subject: [PATCH 5/5] allow 30x redirections
|
||||||
|
|
||||||
|
---
|
||||||
|
lib/curl_transport/curltransaction.c | 4 ++++
|
||||||
|
1 files changed, 4 insertions(+), 0 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/curl_transport/curltransaction.c b/lib/curl_transport/curltransaction.c
|
||||||
|
index 3c75010..e1cfc64 100644
|
||||||
|
--- a/lib/curl_transport/curltransaction.c
|
||||||
|
+++ b/lib/curl_transport/curltransaction.c
|
||||||
|
@@ -495,6 +495,10 @@ setupCurlSession(xmlrpc_env * const envP,
|
||||||
|
curl_easy_setopt(curlSessionP, CURLOPT_POST, 1);
|
||||||
|
curl_easy_setopt(curlSessionP, CURLOPT_URL, curlTransactionP->serverUrl);
|
||||||
|
|
||||||
|
+ 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);
|
||||||
|
+
|
||||||
|
XMLRPC_MEMBLOCK_APPEND(char, envP, callXmlP, "\0", 1);
|
||||||
|
if (!envP->fault_occurred) {
|
||||||
|
curl_easy_setopt(curlSessionP, CURLOPT_POSTFIELDS,
|
||||||
|
--
|
||||||
|
1.7.1.1
|
@ -26,6 +26,7 @@ Patch100: xmlrpc-c-cmake.patch
|
|||||||
Patch102: xmlrpc-c-printf-size_t.patch
|
Patch102: xmlrpc-c-printf-size_t.patch
|
||||||
Patch105: xmlrpc-c-longlong.patch
|
Patch105: xmlrpc-c-longlong.patch
|
||||||
Patch107: xmlrpc-c-uninit-curl.patch
|
Patch107: xmlrpc-c-uninit-curl.patch
|
||||||
|
Patch108: xmlrpc-c-30x-redirect.patch
|
||||||
|
|
||||||
|
|
||||||
BuildRoot: %_tmppath/%name-%version-%release-root
|
BuildRoot: %_tmppath/%name-%version-%release-root
|
||||||
@ -112,6 +113,7 @@ This package contains some handy XML-RPC demo applications.
|
|||||||
%patch102 -p1
|
%patch102 -p1
|
||||||
%patch105 -p1
|
%patch105 -p1
|
||||||
%patch107 -p1
|
%patch107 -p1
|
||||||
|
%patch108 -p1
|
||||||
|
|
||||||
## not needed...
|
## not needed...
|
||||||
rm doc/{INSTALL,configure_doc}
|
rm doc/{INSTALL,configure_doc}
|
||||||
@ -232,6 +234,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%changelog
|
%changelog
|
||||||
* Thu Jul 29 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1.23.01-1400.svn1958
|
* Thu Jul 29 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1.23.01-1400.svn1958
|
||||||
- updated to 1.23.01
|
- updated to 1.23.01
|
||||||
|
- added patch to make curl follow HTTP POST 301 redirects (#618504)
|
||||||
|
|
||||||
* Sun Apr 18 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1.22.01-1400.svn1907
|
* Sun Apr 18 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1.22.01-1400.svn1907
|
||||||
- updated to 1.22.01 (svn 1907)
|
- updated to 1.22.01 (svn 1907)
|
||||||
|
Loading…
Reference in New Issue
Block a user