Home
last modified time | relevance | path

Searched refs:httpUrl (Results 1 - 8 of 8) sorted by relevance

/foundation/communication/netmanager_base/test/fuzztest/netbasebranch_fuzzer/
H A Dnet_base_branch_fuzzer.cpp90 std::string httpUrl = GetStringFromData(STR_LEN); in NetHttpProbeBranchFuzzTest() local
92 instance_->SendProbe(PROBE_HTTP_HTTPS, httpUrl, httpsUrl); in NetHttpProbeBranchFuzzTest()
99 instance_->ExtractDomainFormUrl(httpUrl); in NetHttpProbeBranchFuzzTest()
106 instance_->SetCurlOptions(probeType, httpUrl, httpsUrl); in NetHttpProbeBranchFuzzTest()
/foundation/communication/netmanager_base/services/netconnmanager/include/
H A Dnet_http_probe.h37 int32_t SendProbe(ProbeType probeType, const std::string &httpUrl, const std::string &httpsUrl);
55 bool SetCurlOptions(ProbeType probeType, const std::string &httpUrl, const std::string &httpsUrl);
59 bool SendDnsProbe(ProbeType probeType, const std::string &httpUrl, const std::string &httpsUrl,
H A Dprobe_thread.h41 ProbeType probeType, std::string httpUrl, std::string httpsUrl);
H A Dnet_conn_service.h421 void GetHttpUrlFromConfig(std::string &httpUrl);
/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnet_http_probe.cpp94 int32_t NetHttpProbe::SendProbe(ProbeType probeType, const std::string &httpUrl, const std::string &httpsUrl) in SendProbe() argument
110 if (!SetCurlOptions(probeType, httpUrl, httpsUrl)) { in SendProbe()
294 bool NetHttpProbe::SetCurlOptions(ProbeType probeType, const std::string &httpUrl, const std::string &httpsUrl) in SetCurlOptions() argument
301 if (!SendDnsProbe(probeType, httpUrl, httpsUrl, useProxy)) { in SetCurlOptions()
307 if (!SetHttpOptions(ProbeType::PROBE_HTTP, httpCurl_, httpUrl)) { in SetCurlOptions()
464 bool NetHttpProbe::SendDnsProbe(ProbeType probeType, const std::string &httpUrl, const std::string &httpsUrl, in SendDnsProbe() argument
475 httpDomain = ExtractDomainFormUrl(httpUrl); in SendDnsProbe()
477 NETMGR_LOG_E("The http domain extracted from [%{public}s] is empty", httpUrl.c_str()); in SendDnsProbe()
H A Dprobe_thread.cpp56 ProbeType probeType, std::string httpUrl, std::string httpsUrl) in ProbeThread()
57 : netId_(netId), probeType_(probeType), latch_(latch), latchAll_(latchAll), httpProbeUrl_(httpUrl), in ProbeThread()
54 ProbeThread(uint32_t netId, NetBearType bearType, const NetLinkInfo &netLinkInfo, std::shared_ptr<TinyCountDownLatch> latch, std::shared_ptr<TinyCountDownLatch> latchAll, ProbeType probeType, std::string httpUrl, std::string httpsUrl) ProbeThread() argument
H A Dnet_conn_service.cpp2035 std::string httpUrl; in ActiveHttpProxy() local
2036 GetHttpUrlFromConfig(httpUrl); in ActiveHttpProxy()
2037 if (httpUrl.empty()) { in ActiveHttpProxy()
2042 curl_easy_setopt(curl, CURLOPT_URL, httpUrl.c_str()); in ActiveHttpProxy()
2066 void NetConnService::GetHttpUrlFromConfig(std::string &httpUrl) in GetHttpUrlFromConfig() argument
2085 httpUrl = content.substr(pos, content.find(NEW_LINE_STR, pos) - pos); in GetHttpUrlFromConfig()
2087 NETMGR_LOG_D("Get net detection http url:[%{public}s]", httpUrl.c_str()); in GetHttpUrlFromConfig()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_multi_test/
H A Dnet_http_probe_test.cpp189 std::string httpUrl = ""; in HWTEST_F() local
191 bool ret = instance_->SendDnsProbe(ProbeType::PROBE_HTTP, httpUrl, TEST_STRING, useProxy); in HWTEST_F()

Completed in 10 milliseconds