diff options
author | ComradeCrow <comradecrow@vivaldi.net> | 2023-03-24 02:08:51 -0700 |
---|---|---|
committer | ComradeCrow <comradecrow@vivaldi.net> | 2023-03-24 02:08:51 -0700 |
commit | f12eca235e59c0ea64d2c569674ea7ad31753215 (patch) | |
tree | b8131413756f8d0f01957e373c7125423550566e /main.cpp | |
parent | 2d178326a3af7546b311aa9937176a092babfdfc (diff) | |
download | ytcpp-f12eca235e59c0ea64d2c569674ea7ad31753215.tar.gz |
first steps
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..a48631e --- /dev/null +++ b/main.cpp @@ -0,0 +1,12 @@ +#include <cpr/cpr.h> +#include <iostream> + +using namespace std; + +int main() { + + cpr::Response r = cpr::Get(cpr::Url{"https://httpbin.org/get"}); + cout << r.status_code << endl + << r.header["content-type"] << endl + << r.text << endl; +} \ No newline at end of file |