commit edfb8186981aa8c575dd1c529d3c9af33ef48839
parent 0d6b62eac2aead84d18d43d68087b7c55e7525c3
Author: kocotian <54662947+kocotian@users.noreply.github.com>
Date: Sun, 11 Oct 2020 16:13:43 +0200
Update README.md
Diffstat:
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
@@ -1,2 +1,15 @@
# http.h
simple and small http library for C99
+just include header in your project and you ready to GET.
+
+for example, GET / from suckless.org on port 80:
+```
+#include "http.h"
+int
+main()
+{
+ char *response; long long int size;
+ if((size = httpGET("suckless.org", 80, "/", &response)) == NULL) return -1;
+ printf("%s", response);
+}
+```