blob: 0b6539cbdedca5bda8f75eea7b521105bb4a4772 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
95a96
> int use_head = FALSE;
179c208,209
< INVERT_REGEX = CHAR_MAX + 1
---
> INVERT_REGEX = CHAR_MAX + 1,
> USE_HEAD = CHAR_MAX + 2
209a240
> {"head", no_argument, 0, USE_HEAD},
341a373,375
> case USE_HEAD:
> use_head = 1;
> break;
455a490,497
>
> if (use_head == 1 )
> if ( strcmp(http_method, "POST") == 0) {
> usage4 (_("Using POST data and HEAD requests is not supported"));
> } else {
> no_body = TRUE;
> http_method = strdup("HEAD");
> }
1292a1335,1337
> printf (" %s\n", "--head");
> printf (" %s\n", _("make a HEAD request instead of GET"));
> printf (" %s\n", _("this implies -N\n"));
1341c1386
< printf (" [-k string] [-S] [-C <age>] [-T <content-type>]\n");
---
> printf (" [-k string] [-S] [-C <age>] [-T <content-type>] [--head]\n");
|