X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fo1%2Fves%2FHttpClient.hpp;h=9e3b8da54b06eb92913a13d62bdb7ead2760e5af;hb=0c4403cc2355cc38d01c6645b1dad36dd4c1daa7;hp=fba7242b0377a288abc930527a60aa023b1c7f55;hpb=ef723e2e773fc6a6dcff43005569e509201df198;p=o-du%2Fl2.git diff --git a/src/o1/ves/HttpClient.hpp b/src/o1/ves/HttpClient.hpp index fba7242b0..9e3b8da54 100644 --- a/src/o1/ves/HttpClient.hpp +++ b/src/o1/ves/HttpClient.hpp @@ -47,7 +47,7 @@ class HttpClient HttpClient(){} ~HttpClient(){} - HttpClient(string ip, string port, string username, string password); + HttpClient(string url, string username=0, string password=0); bool send(const char *send_data); private: @@ -57,13 +57,11 @@ class HttpClient bool sendHttpRequest(struct curl_slist *header, CURL *curl); bool setCurlOptions(CURL *curl); bool setUserPassword(CURL *curl); - bool createUrl(CURL *curl); //member variable - string mServerIp; - string mServerPort; string mServerUsername; string mServerPassword; + string mUrl; }; #endif