Skip to content

Commit ce67e24

Browse files
committed
-E implies -S
1 parent 3394326 commit ce67e24

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

bin/lwp-request

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ requests that are handled by the library.
116116
117117
Print response headers. This option is always on for HEAD requests.
118118
119+
=item -E
120+
121+
Print response status chain with full response headers.
122+
119123
=item -d
120124
121125
Do B<not> print the content of the response.
@@ -326,6 +330,7 @@ elsif (!defined $allowed_methods{$method}) {
326330
if ($options{'S'} || $options{'E'}) {
327331
$options{'U'} = 1 if $options{'E'};
328332
$options{'E'} = 1 if $options{'e'};
333+
$options{'S'} = 1;
329334
$options{'s'} = 1;
330335
$options{'u'} = 1;
331336
}
@@ -526,9 +531,9 @@ Usage: $progname [-options] <url>...
526531
-u Display method and URL before any response
527532
-U Display request headers (implies -u)
528533
-s Display response status code
529-
-S Display response status chain
530-
-e Display response headers
531-
-E Display whole chain of headers
534+
-S Display response status chain (implies -u)
535+
-e Display response headers (implies -s)
536+
-E Display whole chain of headers (implies -S and -U)
532537
-d Do not display content
533538
-o <format> Process HTML content in various ways
534539

0 commit comments

Comments
 (0)