From 76ded4828ba2c8c46a0d7996564c65f98d7ab713 Mon Sep 17 00:00:00 2001 From: nishi Date: Sun, 21 Jan 2024 14:30:28 +0000 Subject: [PATCH] better example git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@39 d27a3e52-49c5-7645-884c-6793ebffc270 --- Example/fetch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Example/fetch.c b/Example/fetch.c index ac17c18..26ea393 100644 --- a/Example/fetch.c +++ b/Example/fetch.c @@ -20,6 +20,10 @@ void status(struct W3* w3, int status){ void header(struct W3* w3, char* key, char* value){ printf("Header: %s is `%s'\n", key, value); + if(strcasecmp(key, "Server") == 0){ + /* For the example - We get the server software */ + printf("Server is using `%s'\n", value); + } } int main(int argc, char** argv){ -- 2.43.0