svn merge -r81155:81167 svn+ssh://svn.lindenlab.com/svn/linden/branches/dev-8000-merge-0

Allow for a seperate HTTP proxy for the LLHTTPRequest HTTP client (QAR-318)
meow-7.2.2
Bryan O'Sullivan 2008-03-03 23:35:24 +00:00
parent 1b9fb0031f
commit 62d9c7f76c
2 changed files with 10 additions and 0 deletions

View File

@ -192,6 +192,11 @@ void LLURLRequest::useProxy(bool use_proxy)
}
}
void LLURLRequest::useProxy(const std::string &proxy)
{
curl_easy_setopt(mDetail->mCurlRequest, CURLOPT_PROXY, proxy.c_str());
}
// virtual
LLIOPipe::EStatus LLURLRequest::handleError(
LLIOPipe::EStatus status,

View File

@ -166,6 +166,11 @@ public:
*/
void useProxy(bool use_proxy);
/**
* @ brief Set the CURLOPT_PROXY header to the given value.
*/
void useProxy(const std::string& proxy);
public:
/**
* @brief Give this pipe a chance to handle a generated error