/**
- * Constructor
+ * Constructor. Use this constructor if HTTP AUTH should be used. Username and password will then be set as HTTP auth options.
* @param _log Logger Object
* @param _proxy Proxy to use
* @param _proxy_port Proxy Port
/**
+ * Constructor. Use this constructor if you have to encode the username and password into the url
+ * @param _log Logger Object
+ * @param _proxy Proxy to use
+ * @param _proxy_port Proxy Port
+ */
+HTTPHelper::HTTPHelper(Logger::Ptr _log, const string& _proxy, const int _proxy_port)
+{
+ Log = _log;
+ Proxy = _proxy;
+ ProxyPort = _proxy_port;
+ CurlEasyHandle = init_curl(CurlWritedataBuff, CurlErrBuff);
+}
+
+
+/**
* Destructor
*/
HTTPHelper::~HTTPHelper()
HTTPHelper(Logger::Ptr _log, const std::string& _proxy, const int _proxy_port, const std::string& _username, const std::string& _password);
+ HTTPHelper(Logger::Ptr _log, const std::string& _proxy, const int _proxy_port);
+
~HTTPHelper();
CURL* init_curl(std::string& curl_writedata_buff, char* curl_err_buff) const;