- printf ("allow = '%s'\n", header->allow);
- printf ("authorization = '%s'\n", header->authorization);
- printf ("content_encoding = '%s'\n", header->content_encoding);
- printf ("content_length = '%s'\n", header->content_length);
- printf ("content_type = '%s'\n", header->content_type);
- printf ("date = '%s'\n", header->date);
- printf ("expires = '%s'\n", header->expires);
- printf ("from = '%s'\n", header->from);
- printf ("if_modified_since = '%s'\n", header->if_modified_since);
- printf ("last_modified = '%s'\n", header->last_modified);
- printf ("location = '%s'\n", header->location);
- printf ("pragma = '%s'\n", header->pragma);
- printf ("referer = '%s'\n", header->referer);
- printf ("server = '%s'\n", header->server);
- printf ("user_agent = '%s'\n", header->user_agent);
- printf ("www_authenticate = '%s'\n", header->www_authenticate);
+ printf ("Header values\n");
+ if (header->allow) printf ("allow = '%s'\n", header->allow);
+ if (header->authorization) printf ("authorization = '%s'\n", header->authorization);
+ if (header->content_encoding) printf ("content_encoding = '%s'\n", header->content_encoding);
+ if (header->content_length) printf ("content_length = '%s'\n", header->content_length);
+ if (header->content_type) printf ("content_type = '%s'\n", header->content_type);
+ if (header->date) printf ("date = '%s'\n", header->date);
+ if (header->expires) printf ("expires = '%s'\n", header->expires);
+ if (header->from) printf ("from = '%s'\n", header->from);
+ if (header->if_modified_since) printf ("if_modified_since = '%s'\n", header->if_modified_since);
+ if (header->last_modified) printf ("last_modified = '%s'\n", header->last_modified);
+ if (header->location) printf ("location = '%s'\n", header->location);
+ if (header->pragma) printf ("pragma = '%s'\n", header->pragma);
+ if (header->referer) printf ("referer = '%s'\n", header->referer);
+ if (header->server) printf ("server = '%s'\n", header->server);
+ if (header->user_agent) printf ("user_agent = '%s'\n", header->user_agent);
+ if (header->www_authenticate) printf ("www_authenticate = '%s'\n", header->www_authenticate);