-/*******************************************************************
- *
- * @brief creates and set URL into the curl header
- *
- * @details
- *
- * Function : createUrl
- *
- * Functionality:
- * - creates URL string and set into the curl
- *
- *
- * @params[in] pointer to curl
- * @return true : success
- * false : failure
- ******************************************************************/
-
-
-bool HttpClient::createUrl(CURL *curl)
-{
- //make the url format -- https://10.0.2.132:8443/eventListener/v7
-
- std::ostringstream oss;
- if((mServerIp.c_str()) && (mServerPort.c_str())) {
- oss <<"https://"<<mServerIp<<":"<<mServerPort<<"/eventListener/v7";
- string url = oss.str();
- O1_LOG("O1 VES : URL=%s\n", url.c_str());
- curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
- return true;
- }
- else
- {
- return false;
- }
-}