Skip to content
Snippets Groups Projects
Commit 62d9c7f7 authored by Bryan O'Sullivan's avatar Bryan O'Sullivan
Browse files
Allow for a seperate HTTP proxy for the LLHTTPRequest HTTP client (QAR-318)
parent 1b9fb003
Branches
Tags
No related merge requests found
...@@ -192,6 +192,11 @@ void LLURLRequest::useProxy(bool use_proxy) ...@@ -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 // virtual
LLIOPipe::EStatus LLURLRequest::handleError( LLIOPipe::EStatus LLURLRequest::handleError(
LLIOPipe::EStatus status, LLIOPipe::EStatus status,
......
...@@ -166,6 +166,11 @@ class LLURLRequest : public LLIOPipe ...@@ -166,6 +166,11 @@ class LLURLRequest : public LLIOPipe
*/ */
void useProxy(bool use_proxy); void useProxy(bool use_proxy);
/**
* @ brief Set the CURLOPT_PROXY header to the given value.
*/
void useProxy(const std::string& proxy);
public: public:
/** /**
* @brief Give this pipe a chance to handle a generated error * @brief Give this pipe a chance to handle a generated error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment