From: nishi Date: Sun, 21 Jan 2024 14:30:28 +0000 (+0000) Subject: better example X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=76ded4828ba2c8c46a0d7996564c65f98d7ab713;p=libw3.git better example git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@39 d27a3e52-49c5-7645-884c-6793ebffc270 --- 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){