From dc28eae95a46c3079fcc76b3425ffa37844dd37d Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 11 Aug 2022 23:37:39 -0400 Subject: spoof a bunch of headers like the web client --- src/http.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http.cpp') diff --git a/src/http.cpp b/src/http.cpp index 7338d39..80fb829 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -57,6 +57,10 @@ void request::set_user_agent(const std::string &data) { curl_easy_setopt(m_curl, CURLOPT_USERAGENT, data.c_str()); } +CURL *request::get_curl() { + return m_curl; +} + response request::execute() { if (m_curl == nullptr) { auto response = detail::make_response(m_url, EStatusCode::ClientErrorCURLInit); -- cgit v1.2.3