You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-5Lines changed: 34 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ $ webpagetest --help
58
58
***screenshot**_[options]\<id\>_: get the fully loaded page screenshot in JPG format (PNG if in full resolution)
59
59
***video**_[options]\<tests\>_: create a video from _\<tests\>_ (comma separated test ids)
60
60
***player _\<id\>_: get a html5 player for a video _\<id\>_
61
-
***listen**_[port]_: start webpagetest-api server on port _[7791_]
61
+
***listen**_[options]__[port]_: start webpagetest-api server on port _[7791_]
62
62
***batch**_\<file\>_: run commands in batch, i.e. one command per line from _\<file\>_ in parallel
63
63
64
64
### Options
@@ -107,16 +107,21 @@ _The default WPT server can also be specified via environment variable `WEBPAGET
107
107
***-A, --noads**: block ads defined by adblockrules.org
108
108
***-E, --aft**: (experimental) measure above-the-fold rendering time
109
109
***-Z, --spof**_\<domains\>_: space-delimited list of domains to simulate failure by re-routing to blackhole.webpagetest.org to silently drop all requests
110
+
***--htmlbody**: save the content of only the base HTML response
111
+
***--continuous**: capture video continuously (unstable/experimental, may cause tests to fail)
112
+
***--clearcerts**: clear the OS certificate caches (causes IE to do OCSP/CRL checks during SSL negotiation if the certificates are not already cached)
113
+
***--medianvideo**: store the video from the median run when capturing video is enabled
114
+
***--tsview**_\<id\>_: test name to use when submitting results to tsviewdb (for private instances that have integrated with tsviewdb)
110
115
***-W, --mobile**: (experimental) emulate mobile browser: Chrome mobile user agent, 640x960 screen, 2x scaling and fixed viewport (Chrome only)
***-C, --spdy3**: force SPDY version 3 (Chrome only)
114
119
***-J, --swrender**: force software rendering, disable GPU acceleration (Chrome only)
115
120
***-Q, --noparser**: disable threaded HTML parser (Chrome only)
116
121
***-q, --spdynossl**: use SPDY without SSL (Chrome only)
122
+
***--datareduction**: enable data reduction on Chrome 34+ Android (Chrome only)
123
+
***--useragent**_\<string\>_: custom user agent string (Chrome only)
117
124
***--cmdline**_\<switches\>_: use a list of custom command line switches (Chrome only)
118
-
***--htmlbody**: save the content of only the base HTML response
119
-
***--continuous**: capture video continuously (unstable/experimental, may cause tests to fail)
120
125
***--poll**_[interval]_: poll for results after test is scheduled at every \<interva\l> seconds [5]
121
126
***--wait**_[hostname:port]_: wait for test results informed by agent once complete listening on \<hostname\>:\<port\>[hostname:first port available above 8000]
122
127
***--timeout**_\<seconds\>_: timeout for polling and waiting results [no timeout]
@@ -166,6 +171,11 @@ _The default WPT server can also be specified via environment variable `WEBPAGET
166
171
#### Response (works for **response** command only)
167
172
***-R, --request**_\<number\>_: the request number [1]
168
173
174
+
#### Listen (works for **listen** command only)
175
+
***-k, --key**_\<file\>_: private key file to use for SSL
176
+
***-c, --cert**_\<file\>_: public x509 certificate file to use for SSL
177
+
178
+
169
179
### Examples
170
180
#### 1. Get available locations
171
181
```bash
@@ -335,7 +345,7 @@ Methods and options (including the one letter shorthands) are the same when usin
***blockAds**: _Boolean_, block ads defined by adblockrules.org
419
429
***aftRenderingTime**: _Boolean_, (experimental) measure above-the-fold rendering time
420
430
***spof**: _[String]_, array of string of domains to simulate failure by re-routing to blackhole.webpagetest.org to silently drop all requests
431
+
***htmlBody**: _Boolean_, save the content of only the base HTML response
432
+
***continuous**: _Boolean_, capture video continuously (unstable/experimental, may cause tests to fail)
433
+
***clearCerts**: _Boolean_, clear the OS certificate caches (causes IE to do OCSP/CRL checks during SSL negotiation if the certificates are not already cached)
434
+
***medianVideo**: _Boolean_, store the video from the median run when capturing video is enabled
435
+
***tsView**: _String_, test name to use when submitting results to tsviewdb (for private instances that have integrated with tsviewdb)
421
436
***emulateMobile**: _Boolean_, (experimental) emulate mobile browser: Chrome mobile user agent, 640x960 screen, 2x scaling and fixed viewport (Chrome only)
***forceSpdy3**: _Boolean_, force SPDY version 3 (Chrome only)
425
440
***forceSoftwareRendering**: _Boolean_, force software rendering, disable GPU acceleration (Chrome only)
426
441
***disableThreadedParser**: _Boolean_, disable threaded HTML parser (Chrome only)
427
442
***spdyNoSSL**: _Boolean_, use SPDY without SSL (Chrome only)
443
+
***dataReduction**: _Boolean_, enable data reduction on Chrome 34+ Android (Chrome only)
444
+
***userAgent**: _String_, custom user agent string (Chrome only)
428
445
***commandLine**: _[String]_, use a list of custom command line switches (Chrome only)
429
446
***pollResults**: _Number_, poll for results after test is scheduled at every <interval> seconds [5]
430
447
***waitResults**: _String_, wait for test results informed by agent once complete listening on <hostname>:<port> [hostname:first port available above 8000]
0 commit comments