質問編集履歴
2
非公開要素を公開していたため修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -206,9 +206,9 @@
|
|
206
206
|
|
207
207
|
< server: tsa_m
|
208
208
|
|
209
|
-
< set-cookie: personalization_id="
|
209
|
+
< set-cookie: personalization_id="********"; Max-Age=63072000; Expires=Wed, 11 Jan 2023 05:22:24 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None
|
210
|
-
|
210
|
+
|
211
|
-
< set-cookie: guest_id=
|
211
|
+
< set-cookie: guest_id=********; Max-Age=63072000; Expires=Wed, 11 Jan 2023 05:22:24 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None
|
212
212
|
|
213
213
|
< strict-transport-security: max-age=631138519
|
214
214
|
|
1
質問内容を追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -101,3 +101,125 @@
|
|
101
101
|
oauth_params['oauth_signature'] = quote(signature)
|
102
102
|
|
103
103
|
```
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
## --verboseを用いてリクエストを送った際の返答
|
108
|
+
|
109
|
+
```curl
|
110
|
+
|
111
|
+
curl --verbose https://ton.twitter.com/1.1/ton/data/dm/1346764289621729285/1346764280792666112/H5AXZKQj.jpg -H 'authorization: OAuth oauth_consumer_key="********", oauth_nonce="TekitouNaMojiretsu", oauth_signature="Izcvm5YX4iSiZoBlxJl/V0iJH80%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1610263721", oauth_token="*******", oauth_version="1.0"'
|
112
|
+
|
113
|
+
```
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
```
|
118
|
+
|
119
|
+
* Trying 104.244.42.84...
|
120
|
+
|
121
|
+
* TCP_NODELAY set
|
122
|
+
|
123
|
+
* Connected to ton.twitter.com (104.244.42.84) port 443 (#0)
|
124
|
+
|
125
|
+
* ALPN, offering h2
|
126
|
+
|
127
|
+
* ALPN, offering http/1.1
|
128
|
+
|
129
|
+
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
|
130
|
+
|
131
|
+
* successfully set certificate verify locations:
|
132
|
+
|
133
|
+
* CAfile: /etc/ssl/cert.pem
|
134
|
+
|
135
|
+
CApath: none
|
136
|
+
|
137
|
+
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
|
138
|
+
|
139
|
+
* TLSv1.2 (IN), TLS handshake, Server hello (2):
|
140
|
+
|
141
|
+
* TLSv1.2 (IN), TLS handshake, Certificate (11):
|
142
|
+
|
143
|
+
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
|
144
|
+
|
145
|
+
* TLSv1.2 (IN), TLS handshake, Server finished (14):
|
146
|
+
|
147
|
+
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
|
148
|
+
|
149
|
+
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
|
150
|
+
|
151
|
+
* TLSv1.2 (OUT), TLS handshake, Finished (20):
|
152
|
+
|
153
|
+
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
|
154
|
+
|
155
|
+
* TLSv1.2 (IN), TLS handshake, Finished (20):
|
156
|
+
|
157
|
+
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
|
158
|
+
|
159
|
+
* ALPN, server accepted to use h2
|
160
|
+
|
161
|
+
* Server certificate:
|
162
|
+
|
163
|
+
* subject: C=US; ST=California; L=San Francisco; O=Twitter, Inc.; OU=tyo3; CN=ton.twitter.com
|
164
|
+
|
165
|
+
* start date: May 19 00:00:00 2020 GMT
|
166
|
+
|
167
|
+
* expire date: May 17 12:00:00 2021 GMT
|
168
|
+
|
169
|
+
* subjectAltName: host "ton.twitter.com" matched cert's "ton.twitter.com"
|
170
|
+
|
171
|
+
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
|
172
|
+
|
173
|
+
* SSL certificate verify ok.
|
174
|
+
|
175
|
+
* Using HTTP2, server supports multi-use
|
176
|
+
|
177
|
+
* Connection state changed (HTTP/2 confirmed)
|
178
|
+
|
179
|
+
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
|
180
|
+
|
181
|
+
* Using Stream ID: 1 (easy handle 0x7ff656003c00)
|
182
|
+
|
183
|
+
> GET /1.1/ton/data/dm/1346764289621729285/1346764280792666112/H5AXZKQj.jpg HTTP/2
|
184
|
+
|
185
|
+
> Host: ton.twitter.com
|
186
|
+
|
187
|
+
> User-Agent: curl/7.54.0
|
188
|
+
|
189
|
+
> Accept: */*
|
190
|
+
|
191
|
+
> authorization: OAuth oauth_consumer_key="1Cg869czeSApuPXjryx87LQSg", oauth_nonce="TekitouNaMojiretsu", oauth_signature="Izcvm5YX4iSiZoBlxJl/V0iJH80%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1610263721", oauth_token="1341974077708271616-cyH9YrFDVzQjnQy0nTFrUU3zHNTv1H", oauth_version="1.0"
|
192
|
+
|
193
|
+
>
|
194
|
+
|
195
|
+
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
|
196
|
+
|
197
|
+
< HTTP/2 302
|
198
|
+
|
199
|
+
< cache-control: no-cache
|
200
|
+
|
201
|
+
< content-length: 0
|
202
|
+
|
203
|
+
< date: Mon, 11 Jan 2021 05:22:24 GMT
|
204
|
+
|
205
|
+
< location: https://ton.twitter.com/1.1/ton/data/dm/1346764289621729285/1346764280792666112/H5AXZKQj.jpg
|
206
|
+
|
207
|
+
< server: tsa_m
|
208
|
+
|
209
|
+
< set-cookie: personalization_id="v1_hMD9Bsl/rE6hpz3pOUgRtA=="; Max-Age=63072000; Expires=Wed, 11 Jan 2023 05:22:24 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None
|
210
|
+
|
211
|
+
< set-cookie: guest_id=v1%3A161034254479857214; Max-Age=63072000; Expires=Wed, 11 Jan 2023 05:22:24 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None
|
212
|
+
|
213
|
+
< strict-transport-security: max-age=631138519
|
214
|
+
|
215
|
+
< x-connection-hash: 59ab3ccde78507075e6dca4c0af51b7c
|
216
|
+
|
217
|
+
< x-content-type-options: nosniff
|
218
|
+
|
219
|
+
< x-response-time: 109
|
220
|
+
|
221
|
+
<
|
222
|
+
|
223
|
+
* Connection #0 to host ton.twitter.com left intact
|
224
|
+
|
225
|
+
```
|