mirror of
https://github.com/Orange-Cyberdefense/p3-loader
synced 2026-07-08 17:02:48 +00:00
18 lines
317 B
C++
18 lines
317 B
C++
#pragma once
|
|
#ifndef HTTP_CLIENT_H
|
|
#define HTTP_CLIENT_H
|
|
#include <Windows.h>
|
|
#include <wininet.h>
|
|
#include <vector>
|
|
|
|
class HTTPClient {
|
|
public:
|
|
HTTPClient(const wchar_t* user_agent);
|
|
~HTTPClient();
|
|
std::vector<uint8_t> DownloadURL(const wchar_t* url);
|
|
private:
|
|
HINTERNET m_hInternet;
|
|
};
|
|
|
|
#endif // HTTP_CLIENT_H
|