2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
nghttp(1)
|
|
|
|
=========
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2015-01-09 16:37:42 +01:00
|
|
|
|
2014-07-08 17:38:43 +02:00
|
|
|
**nghttp** [OPTIONS]... <URI>...
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2015-01-09 16:37:42 +01:00
|
|
|
|
2014-07-08 17:38:43 +02:00
|
|
|
HTTP/2 experimental client
|
|
|
|
|
2015-01-09 16:37:42 +01:00
|
|
|
.. describe:: <URI>
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
Specify URI to access.
|
|
|
|
|
2015-02-01 10:33:24 +01:00
|
|
|
OPTIONS
|
|
|
|
-------
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
.. option:: -v, --verbose
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Print debug information such as reception and
|
|
|
|
transmission of frames and name/value pairs. Specifying
|
|
|
|
this option multiple times increases verbosity.
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
.. option:: -n, --null-out
|
|
|
|
|
|
|
|
Discard downloaded data.
|
|
|
|
|
|
|
|
.. option:: -O, --remote-name
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Save download data in the current directory. The
|
|
|
|
filename is dereived from URI. If URI ends with '*/*',
|
|
|
|
'index.html' is used as a filename. Not implemented
|
|
|
|
yet.
|
2014-07-08 17:38:43 +02:00
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
.. option:: -t, --timeout=<SEC>
|
2014-07-08 17:38:43 +02:00
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Timeout each request after <SEC> seconds.
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
.. option:: -w, --window-bits=<N>
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Sets the stream level initial window size to 2\*\*<N>-1.
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
.. option:: -W, --connection-window-bits=<N>
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Sets the connection level initial window size to
|
2014-07-08 17:38:43 +02:00
|
|
|
2\*\*<N>-1.
|
|
|
|
|
|
|
|
.. option:: -a, --get-assets
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Download assets such as stylesheets, images and script
|
|
|
|
files linked from the downloaded resource. Only links
|
|
|
|
whose origins are the same with the linking resource
|
|
|
|
will be downloaded. nghttp prioritizes resources using
|
|
|
|
HTTP/2 dependency based priority. The priority order,
|
|
|
|
from highest to lowest, is html itself, css, javascript
|
|
|
|
and images.
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
.. option:: -s, --stat
|
|
|
|
|
|
|
|
Print statistics.
|
|
|
|
|
2014-10-27 16:35:44 +01:00
|
|
|
.. option:: -H, --header=<HEADER>
|
2014-07-08 17:38:43 +02:00
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Add a header to the requests. Example: :option:`-H`\':method: PUT'
|
2014-07-08 17:38:43 +02:00
|
|
|
|
2015-03-14 10:52:50 +01:00
|
|
|
.. option:: --trailer=<HEADER>
|
|
|
|
|
|
|
|
Add a trailer header to the requests. <HEADER> must not
|
|
|
|
include pseudo header field (header field name starting
|
|
|
|
with ':'). To send trailer, one must use :option:`-d` option to
|
|
|
|
send request body. Example: :option:`--trailer` 'foo: bar'.
|
|
|
|
|
2014-07-08 17:38:43 +02:00
|
|
|
.. option:: --cert=<CERT>
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Use the specified client certificate file. The file
|
|
|
|
must be in PEM format.
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
.. option:: --key=<KEY>
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Use the client private key file. The file must be in
|
|
|
|
PEM format.
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
.. option:: -d, --data=<FILE>
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Post FILE to server. If '-' is given, data will be read
|
|
|
|
from stdin.
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
.. option:: -m, --multiply=<N>
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Request each URI <N> times. By default, same URI is not
|
|
|
|
requested twice. This option disables it too.
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
.. option:: -u, --upgrade
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Perform HTTP Upgrade for HTTP/2. This option is ignored
|
|
|
|
if the request URI has https scheme. If :option:`-d` is used, the
|
|
|
|
HTTP upgrade request is performed with OPTIONS method.
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
.. option:: -p, --weight=<WEIGHT>
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Sets priority group weight. The valid value range is
|
|
|
|
[1, 256], inclusive.
|
2015-01-09 16:37:42 +01:00
|
|
|
|
|
|
|
Default: ``16``
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
.. option:: -M, --peer-max-concurrent-streams=<N>
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Use <N> as SETTINGS_MAX_CONCURRENT_STREAMS value of
|
|
|
|
remote endpoint as if it is received in SETTINGS frame.
|
|
|
|
The default is large enough as it is seen as unlimited.
|
2014-07-08 17:38:43 +02:00
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
.. option:: -c, --header-table-size=<SIZE>
|
2014-07-08 17:38:43 +02:00
|
|
|
|
|
|
|
Specify decoder header table size.
|
|
|
|
|
|
|
|
.. option:: -b, --padding=<N>
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Add at most <N> bytes to a frame payload as padding.
|
|
|
|
Specify 0 to disable padding.
|
2014-07-08 17:38:43 +02:00
|
|
|
|
2014-11-24 07:27:41 +01:00
|
|
|
.. option:: -r, --har=<FILE>
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Output HTTP transactions <FILE> in HAR format. If '-'
|
|
|
|
is given, data is written to stdout.
|
2014-11-24 07:27:41 +01:00
|
|
|
|
2014-07-08 17:38:43 +02:00
|
|
|
.. option:: --color
|
|
|
|
|
|
|
|
Force colored log output.
|
|
|
|
|
|
|
|
.. option:: --continuation
|
|
|
|
|
|
|
|
Send large header to test CONTINUATION.
|
|
|
|
|
|
|
|
.. option:: --no-content-length
|
|
|
|
|
|
|
|
Don't send content-length header field.
|
|
|
|
|
2014-11-24 07:27:41 +01:00
|
|
|
.. option:: --no-dep
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Don't send dependency based priority hint to server.
|
2014-11-24 07:27:41 +01:00
|
|
|
|
2015-01-06 17:40:55 +01:00
|
|
|
.. option:: --dep-idle
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
Use idle streams as anchor nodes to express priority.
|
2015-01-06 17:40:55 +01:00
|
|
|
|
2014-07-08 17:38:43 +02:00
|
|
|
.. option:: --version
|
|
|
|
|
|
|
|
Display version information and exit.
|
|
|
|
|
|
|
|
.. option:: -h, --help
|
|
|
|
|
|
|
|
Display this help and exit.
|
|
|
|
|
2015-01-15 16:10:16 +01:00
|
|
|
|
|
|
|
The <SIZE> argument is an integer and an optional unit (e.g., 10K is
|
|
|
|
10 * 1024). Units are K, M and G (powers of 1024).
|
|
|
|
|
2014-07-08 17:38:43 +02:00
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
2015-01-09 16:37:42 +01:00
|
|
|
:manpage:`nghttpd(1)`, :manpage:`nghttpx(1)`, :manpage:`h2load(1)`
|