summaryrefslogtreecommitdiff
path: root/src/uaLookup.hpp
blob: 5492f05575c4da558f01ba3b0a54dd007d53e0f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <curl/curl.h>
#include <stdexcept>
#include <string>

namespace WebStat {
	class CurlError : public std::runtime_error {
	public:
		explicit CurlError(CURLcode code, const char * msg) : std::runtime_error {msg}, code(code) { }

		CURLcode code;
	};

	std::string getUserAgentDetail(std::string_view uas, const char * baseUrl = "https://useragentstring.com");
}