http.h

simple http library for c99
git clone git://git.kocotian.pl/http.h.git
Log | Files | Refs | README | LICENSE

commit 2fdd1eae204b4c09060b6c7ea93dfcbd0f0b6b09
parent c052e72b89c13f1863c61fc5e64ecd61f1dd5a93
Author: kocotian <54662947+kocotian@users.noreply.github.com>
Date:   Sun, 11 Oct 2020 17:09:46 +0200

Update README.md
Diffstat:
MREADME.md | 15+--------------
1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/README.md b/README.md @@ -12,20 +12,7 @@ main() char *response; long long int size; if(!(size = httpGET("suckless.org", 80, "/", &response))) return -1; printf("%s", response); - free(response); - return 0; -} -``` -same as higher, but without HTTP header: -```c -#include "http.h" - -int -main() -{ - char *response, *data; long long int size; - if(!(size = httpGET("suckless.org", 80, "/", &response))) return -1; - printf("%s", truncateHeader(response)); + /* or if you don't want http header: printf("%s", truncateHeader(response)); */ free(response); return 0; }