Comments (1)
Achieve the ability to indicate curl bin path in PR #13.
Set curl bin by:
export HTTPSTAT_CURL_BIN=/usr/local/Cellar/curl/7.50.3/bin/curl
Request https://http2.akamai.com/ with curl option --http2
$ python httpstat.py https://http2.akamai.com/ --http2
DEBUG:httpstat:ENVs:
HTTPSTAT_SHOW_BODY: False
HTTPSTAT_SHOW_SPEED: False
HTTPSTAT_CURL_BIN: /usr/local/Cellar/curl/7.50.3/bin/curl
HTTPSTAT_DEBUG: True
DEBUG:httpstat:cmd: ['/usr/local/Cellar/curl/7.50.3/bin/curl', '-w', '{\n"time_namelookup": %{time_namelookup},\n"time_connect": %{time_connect},\n"time_appconnect": %{time_appconnect},\n"time_pretransfer": %{time_pretransfer},\n"time_redirect": %{time_redirect},\n"time_starttransfer": %{time_starttransfer},\n"time_total": %{time_total},\n"speed_download": %{speed_download},\n"speed_upload": %{speed_upload}\n}', '-D', '/var/folders/82/sfpvl4pd3vd4_4hy0dqcvldr0000gn/T/tmpZBoEIw', '-o', '/var/folders/82/sfpvl4pd3vd4_4hy0dqcvldr0000gn/T/tmpLgR7O9', '-s', '-S', '--http2', 'https://http2.akamai.com/']
HTTP/2 200
server: Apache
content-type: text/html;charset=UTF-8
etag: "5e9139516a4f3d7a27577441623ca90d:1465962509"
link: <https://ds-aksb-a.akamaihd.net>;rel="preconnect"
link: <https://www.youtube.com>;rel="preconnect"
strict-transport-security: max-age=31536000 ; includeSubDomains
access-control-allow-origin: *
access-control-allow-methods: GET,HEAD,POST
access-control-allow-headers: *
access-control-allow-credentials: false
access-control-max-age: 86400
accept-ch: DPR, Width, Viewport-Width, Downlink, Save-Data
protocol_negotiation: h2
myproto: h2
client_ip: 119.9.108.90
client_real_ip: 119.9.108.90
ghost_service_ip: 184.28.218.196
ghost_ip: 23.196.42.197
rtt: 4
push: true
x-akamai-transformed: 9 10583 0 pmb=mRUM,1
cache-control: max-age=43200
expires: Tue, 27 Sep 2016 19:23:27 GMT
date: Tue, 27 Sep 2016 07:23:27 GMT
content-length: 11692
Body stored in: /var/folders/82/sfpvl4pd3vd4_4hy0dqcvldr0000gn/T/tmpLgR7O9
DNS Lookup TCP Connection SSL Handshake Server Processing Content Transfer
[ 478ms | 4ms | 77ms | 635ms | 0ms ]
| | | | |
namelookup:478ms | | | |
connect:482ms | | |
pretransfer:559ms | |
starttransfer:1194ms |
total:1194ms
from httpstat.
Related Issues (20)
- Merge with httpie HOT 2
- HTTP/2 Support HOT 1
- brew formula not found HOT 4
- Option to display the IP address used to contact destination HOT 6
- Valid cURL invocation fails with httpstat because of URL position HOT 3
- Provide Average based on number of attempts over time HOT 2
- Error when running on Linux/Python 2.6 HOT 2
- 'failed to create process' after PIP install - Possible Python 3 Compatibility Issue? HOT 4
- FileNotFoundError on WIN7/Python3.6.0, installed with Pip HOT 2
- Add option for detailing SSL/TLS Certificate HOT 5
- Snapcraft.yaml for httpstat HOT 1
- Windows color support using colorama
- Lamentable screenshot HOT 2
- Detecting connectivity Issues to the destination HOT 3
- server processing time is negative HOT 4
- 这是抄袭了https://github.com/davecheney/httpstat吗? HOT 2
- davecheney/httpstat says that this project is a shameless ripoff? why? HOT 1
- why server processing is 0 with local request HOT 5
- Ffffff
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpstat.