curlコマンドでプロトコルを指定してアクセスしてみるというのではどうでしょうか。
http1.1の場合
bash
1 $ curl -I --http1.1 https://teratail.com
2 HTTP/1.1 200 OK
3 Server: nginx/1.19.5
4 Date: Mon, 04 Oct 2021 07:00:16 GMT
5 Content-Type: text/html ; charset = UTF-8
6 X-FRAME-OPTIONS: SAMEORIGN
7 Set-Cookie: tt_stc = 652719add119ff953c83e8808a2c31ad ; expires = Sun, 02-Jan-2022 07:00:16 GMT ; Max-Age = 7776000 ; path = /
8 Set-Cookie: tt_sec = 0c59b2005828fd08a2e200448388d6e5 ; path = /
9 Set-Cookie: DSID = 83f49c50aeefaf238d11e36db34fc028 ; expires = Mon, 04-Oct-2021 11 :00:16 GMT ; Max-Age = 14400 ; path = / ; HttpOnly
10 Set-Cookie: tt_rpd = top ; path = /
11 Set-Cookie: tt_stc = 652719add119ff953c83e8808a2c31ad ; expires = Sun, 02-Jan-2022 07:00:16 GMT ; Max-Age = 7776000 ; path = /
12 Set-Cookie: CakeCookie [ hFd7M1i8 ] = deleted ; expires = Thu, 01-Jan-1970 00:00:01 GMT ; Max-Age = 0 ; path = / ; secure ; HttpOnly
13 Set-Cookie: Cookies [ uniqid ] = Q2FrZQ%3D%3D.2XMOJr6yxBnwfmC7tDg%2FJ4YKj9vxWCTUVRBBDCMQpB4%3D ; path = / ; secure ; HttpOnly
14 Set-Cookie: Cookies [ referer ] = Q2FrZQ%3D%3D. ; path = / ; secure ; HttpOnly
15 Set-Cookie: Cookies [ referer_host ] = Q2FrZQ%3D%3D. ; path = / ; secure ; HttpOnly
16 Set-Cookie: Cookies [ sip ] = Q2FrZQ%3D%3D. ; path = / ; secure ; HttpOnly
17 Set-Cookie: Cookies [ url_query ] = Q2FrZQ%3D%3D. ; path = / ; secure ; HttpOnly
18 Set-Cookie: Cookies [ btn ] = Q2FrZQ%3D%3D.nCwYQa7whkqx ; path = / ; secure ; HttpOnly
19 Set-Cookie: Cookies [ ab ] = Q2FrZQ%3D%3D.iQ%3D%3D ; expires = Sat, 02-Apr-2022 07:00:16 GMT ; Max-Age = 15552000 ; path = / ; secure ; HttpOnly
20 Accept-Ranges: none
21 Via: 1.1 google
22 Transfer-Encoding: ch
http2の場合
bash
1 $ curl -I --http2 https://teratail.com
2 HTTP/2 200
3 server: nginx/1.19.5
4 date: Mon, 04 Oct 2021 07:00:22 GMT
5 content-type: text/html ; charset = UTF-8
6 x-frame-options: SAMEORIGN
7 set-cookie: tt_stc = d5412cc9ad7b7f1a7fc8c44f12c0dc7f ; expires = Sun, 02-Jan-2022 07:00:21 GMT ; Max-Age = 7776000 ; path = /
8 set-cookie: tt_sec = 51e2c74532ca28fbb27d006414d0fe38 ; path = /
9 set-cookie: DSID = 970832247012508a59a657abef9b9e2b ; expires = Mon, 04-Oct-2021 11 :00:21 GMT ; Max-Age = 14400 ; path = / ; HttpOnly
10 set-cookie: tt_rpd = top ; path = /
11 set-cookie: tt_stc = d5412cc9ad7b7f1a7fc8c44f12c0dc7f ; expires = Sun, 02-Jan-2022 07:00:22 GMT ; Max-Age = 7776000 ; path = /
12 set-cookie: CakeCookie [ hFd7M1i8 ] = deleted ; expires = Thu, 01-Jan-1970 00:00:01 GMT ; Max-Age = 0 ; path = / ; secure ; HttpOnly
13 set-cookie: Cookies [ uniqid ] = Q2FrZQ%3D%3D.3XpbKb%2B0kx31IzHh4jtuLNUMjoH%2FWyCBCUdIUHJDqRw%3D ; path = / ; secure ; HttpOnly
14 set-cookie: Cookies [ referer ] = Q2FrZQ%3D%3D. ; path = / ; secure ; HttpOnly
15 set-cookie: Cookies [ referer_host ] = Q2FrZQ%3D%3D. ; path = / ; secure ; HttpOnly
16 set-cookie: Cookies [ sip ] = Q2FrZQ%3D%3D. ; path = / ; secure ; HttpOnly
17 set-cookie: Cookies [ url_query ] = Q2FrZQ%3D%3D. ; path = / ; secure ; HttpOnly
18 set-cookie: Cookies [ btn ] = Q2FrZQ%3D%3D.nCwYQa7whkqx ; path = / ; secure ; HttpOnly
19 set-cookie: Cookies [ ab ] = Q2FrZQ%3D%3D.iQ%3D%3D ; expires = Sat, 02-Apr-2022 07:00:22 GMT ; Max-Age = 15552000 ; path = / ; secure ; HttpOnly
20 accept-ranges: none
21 via: 1.1 google
22 alt-svc: clear
なお、http2でアクセスする場合はssl (https://でのアクセス ) が必須になります。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/10/07 04:49