| 65 | } |
| 66 | |
| 67 | bool HttpServerBrowser::Probe() |
| 68 | { |
| 69 | curl_easy_setopt(m_curl, CURLOPT_NOBODY, 1L); |
| 70 | |
| 71 | CURLcode ret = curl_easy_perform(m_curl); |
| 72 | curl_easy_setopt(m_curl, CURLOPT_NOBODY, 0L); |
| 73 | curl_easy_setopt(m_curl, CURLOPT_HTTPGET, 1L); |
| 74 | |
| 75 | if (ret != CURLE_OK) |
| 76 | { |
| 77 | return false; |
| 78 | } |
| 79 | |
| 80 | return true; |
| 81 | } |
| 82 | |
| 83 | bool HttpServerBrowser::IsAtRoot(string *current) |
| 84 | { |
nothing calls this directly
no outgoing calls
no test coverage detected