X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2Fsoap%2Fimpl%2FCURLSOAPTransport.cpp;fp=xmltooling%2Fsoap%2Fimpl%2FCURLSOAPTransport.cpp;h=130c89e225886a5e6bd21257071e004bf9cee5a2;hb=3934d283d4a033f356d5f9d4f20e601cee843db4;hp=5dd48a3e38f5b3ad2307cbe8b91942a3ab4e6de6;hpb=f220f4dffc93bea2356730385da7bc17a1fce4bc;p=shibboleth%2Fxmltooling.git diff --git a/xmltooling/soap/impl/CURLSOAPTransport.cpp b/xmltooling/soap/impl/CURLSOAPTransport.cpp index 5dd48a3..130c89e 100644 --- a/xmltooling/soap/impl/CURLSOAPTransport.cpp +++ b/xmltooling/soap/impl/CURLSOAPTransport.cpp @@ -148,6 +148,13 @@ namespace xmltooling { return true; } + bool followRedirects(bool follow, unsigned int maxRedirs) { + return ( + curl_easy_setopt(m_handle, CURLOPT_FOLLOWLOCATION, (follow ? 1 : 0)) == CURLE_OK && + curl_easy_setopt(m_handle, CURLOPT_MAXREDIRS, (follow ? maxRedirs : 0)) == CURLE_OK + ); + } + bool setCacheTag(string* cacheTag) { m_cacheTag = cacheTag; return true;