about summary refs log tree commit diff stats
path: root/main.cpp
diff options
context:
space:
mode:
authorComradeCrow <comradecrow@vivaldi.net>2023-03-24 02:08:51 -0700
committerComradeCrow <comradecrow@vivaldi.net>2023-03-24 02:08:51 -0700
commitf12eca235e59c0ea64d2c569674ea7ad31753215 (patch)
treeb8131413756f8d0f01957e373c7125423550566e /main.cpp
parent2d178326a3af7546b311aa9937176a092babfdfc (diff)
downloadytcpp-f12eca235e59c0ea64d2c569674ea7ad31753215.tar.gz
first steps
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp12
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