177 |
"^HTTP/([0-9]+)[.]([0-9]+) ([0-9][0-9][0-9]) ([\t -~€-ÿ]*)$", |
"^HTTP/([0-9]+)[.]([0-9]+) ([0-9][0-9][0-9]) ([\t -~€-ÿ]*)$", |
178 |
REG_EXTENDED); |
REG_EXTENDED); |
179 |
regcomp_wrapper(&re_token, |
regcomp_wrapper(&re_token, |
180 |
"^([-0-9a-zA-Z_.]+)", |
"^([-0-9a-zA-Z_.!]+)", |
181 |
REG_EXTENDED); |
REG_EXTENDED); |
182 |
regcomp_wrapper(&re_token_value, |
regcomp_wrapper(&re_token_value, |
183 |
"^([-0-9a-zA-Z_.]+)(=([-0-9a-zA-Z_.]+|\"([^\"]|[\\].)*\"))?", |
"^([-0-9a-zA-Z_.!]+)(=([-0-9a-zA-Z_.!]+|\"([^\"]|[\\].)*\"))?", |
184 |
REG_EXTENDED); |
REG_EXTENDED); |
185 |
regcomp_wrapper(&re_content_type, |
regcomp_wrapper(&re_content_type, |
186 |
"^([-0-9a-zA-Z_.]+)/([-0-9a-zA-Z_.]+)[ \t]*" |
"^([-0-9a-zA-Z_.]+)/([-0-9a-zA-Z_.]+)[ \t]*" |
194 |
"^(W/[ \t]*)?\"([^\"]|[\\].)*\"$", |
"^(W/[ \t]*)?\"([^\"]|[\\].)*\"$", |
195 |
REG_EXTENDED); |
REG_EXTENDED); |
196 |
regcomp_wrapper(&re_server, |
regcomp_wrapper(&re_server, |
197 |
"^((([-0-9a-zA-Z_.]+(/[-0-9a-zA-Z_.]+)?)|(\\(.*\\)))[ \t]*)+$", |
"^((([-0-9a-zA-Z_.!]+(/[-0-9a-zA-Z_.]+)?)|(\\(.*\\)))[ \t]*)+$", |
198 |
REG_EXTENDED); |
REG_EXTENDED); |
199 |
regcomp_wrapper(&re_transfer_coding, |
regcomp_wrapper(&re_transfer_coding, |
200 |
"^([-0-9a-zA-Z_.]+)[ \t]*" |
"^([-0-9a-zA-Z_.]+)[ \t]*" |
205 |
"^([-0-9a-zA-Z_.](/[-0-9a-zA-Z_.])?)+$", |
"^([-0-9a-zA-Z_.](/[-0-9a-zA-Z_.])?)+$", |
206 |
REG_EXTENDED); |
REG_EXTENDED); |
207 |
regcomp_wrapper(&re_ugly, |
regcomp_wrapper(&re_ugly, |
208 |
"^[a-zA-Z0-9]+://[^/]+[/a-zA-Z0-9-_]*$", |
"^[a-zA-Z0-9]+://[^/]+[-/a-zA-Z0-9_]*$", |
209 |
REG_EXTENDED); |
REG_EXTENDED); |
210 |
regcomp_wrapper(&re_rfc1123, |
regcomp_wrapper(&re_rfc1123, |
211 |
"^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), ([0123][0-9]) " |
"^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), ([0123][0-9]) " |
398 |
if (header) { |
if (header) { |
399 |
header->count++; |
header->count++; |
400 |
header->handler(value); |
header->handler(value); |
401 |
} else |
} else if ((name[0] == 'X' || name[0] == 'x') && name[1] == '-') { |
402 |
|
lookup("xheader"); |
403 |
|
} else { |
404 |
lookup("nonstandard"); |
lookup("nonstandard"); |
405 |
|
} |
406 |
} |
} |
407 |
|
|
408 |
|
|
820 |
time0 = time(0); |
time0 = time(0); |
821 |
if (!parse_date(s, &tm)) |
if (!parse_date(s, &tm)) |
822 |
return; |
return; |
823 |
time1 = mktime(&tm); |
time1 = mktime_from_utc(&tm); |
824 |
|
|
825 |
diff = difftime(time1, time0); |
diff = difftime(time1, time0); |
826 |
if (10 < diff) |
if (10 < diff) |
1089 |
{ "via", "This header was added by a proxy, cache or gateway." }, |
{ "via", "This header was added by a proxy, cache or gateway." }, |
1090 |
{ "wrongdate", "Warning: The server date-time differs from this system's " |
{ "wrongdate", "Warning: The server date-time differs from this system's " |
1091 |
"date-time by more than 10 seconds. Check that both the " |
"date-time by more than 10 seconds. Check that both the " |
1092 |
"system clocks are correct." } |
"system clocks are correct." }, |
1093 |
|
{ "xheader", "This is an extension header. I don't know how to check it." } |
1094 |
}; |
}; |
1095 |
|
|
1096 |
|
|