diff Core/HttpClient.h @ 1273:88010d8e12cf

Support of HTTP proxy
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Jan 2015 16:08:58 +0100
parents b17b6bd59747
children 6e7e5ed91c2d
line wrap: on
line diff
--- a/Core/HttpClient.h	Mon Jan 12 17:42:29 2015 +0100
+++ b/Core/HttpClient.h	Mon Jan 19 16:08:58 2015 +0100
@@ -53,6 +53,7 @@
     std::string postData_;
     bool isVerbose_;
     long timeout_;
+    std::string proxy_;
 
     void Setup();
 
@@ -134,6 +135,11 @@
     void SetCredentials(const char* username,
                         const char* password);
 
+    void SetProxy(const std::string& proxy)
+    {
+      proxy_ = proxy;
+    }
+
     static void GlobalInitialize();
   
     static void GlobalFinalize();