andermirik / http

Simple https client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

http

auto str = "https://yobit.net/api/3/ticker/ltc_btc";
std::cout << http::get(str, "some data").to_string() << std::endl;
std::cout << http::post(str, "some data").to_string() << std::endl;
resp = http::upload_files(upload_url, { http::File::from_uri("file", "file.gif", file_url) });
http::Request req;
req.method = "GET";
req.uri = http::Uri("https://yobit.net/api/3/ticker/ltc_btc");
req.headers["Hello"] = "World!";
req.body = "Some data";

std::cout << http::sendRequest(req).to_string();

About

Simple https client

License:MIT License


Languages

Language:C++ 100.0%