Curl » История » Версия 4
Андрей Волков, 2017-12-20 19:13
1 | 1 | Андрей Волков | h1. Curl |
---|---|---|---|
2 | |||
3 | |||
4 | 4 | Андрей Волков | <pre> |
5 | curl 'https://ppc.rc-online.ru/cdadm/index.php?r=site/login' \ |
||
6 | --insecure \ |
||
7 | --cert vam.crt \ |
||
8 | --key vam.dec.key \ |
||
9 | -o /dev/null \ |
||
10 | -s \ |
||
11 | -w '%{time_total} sec\n' |
||
12 | </pre> |
||
13 | 1 | Андрей Волков | |
14 | 4 | Андрей Волков | |
15 | <pre> |
||
16 | for NAME in $(seq -w 40); do \ |
||
17 | echo -n "$(date +'%Y_%m_%d T') Try #$NAME - "; \ |
||
18 | curl 'https://ppc.rc-online.ru/cdadm/index.php?r=site/login' \ |
||
19 | --insecure \ |
||
20 | --cert vam.crt \ |
||
21 | --key vam.key \ |
||
22 | -o /dev/null \ |
||
23 | -s \ |
||
24 | -w '%{time_total} sec (NS:%{time_namelookup}sec, TCP:%{time_connect}sec, SSL:%{time_appconnect}sec, REQ:%{time_pretransfer} sec, ANS:%{time_starttransfer}sec)\n'; \ |
||
25 | sleep 260; \ |
||
26 | done |
||
27 | </pre> |
||
28 | 3 | Андрей Волков | |
29 | |||
30 | h2. Смотрим время запроса: |
||
31 | |||
32 | <pre> |
||
33 | curl http://dev.bigcityevents.ru/ -o /dev/null -s -w '%{time_total} sec (NS:%{time_namelookup}sec, TCP:%{time_connect}sec, REQ:%{time_pretransfer} sec, ANS:%{time_starttransfer}sec)\n' |
||
34 | </pre> |
||
35 | |||
36 | h3. Ответ в виде |
||
37 | |||
38 | <pre> |
||
39 | 0.250 sec (NS:0.060sec, TCP:0.142sec, REQ:0.142 sec, ANS:0.249sec) |
||
40 | </pre> |