{"id":3545,"date":"2019-12-18T14:22:37","date_gmt":"2019-12-18T06:22:37","guid":{"rendered":"https:\/\/www.ookangzheng.com\/?p=3545"},"modified":"2020-05-24T15:58:05","modified_gmt":"2020-05-24T07:58:05","slug":"curl-101-on-linux","status":"publish","type":"post","link":"https:\/\/www.ookangzheng.com\/curl-101-on-linux\/","title":{"rendered":"CURL 101 on Linux"},"content":{"rendered":"\n
Curl using If the site only accept If the site only accept tls1.2<\/p>\n\n\n\n Upload a file<\/p>\n\n\n\n Only Get http status<\/p>\n\n\n\n Curl using Dns-over-HTTPS ( DoH) If the site only accept tls1.3 If the site only accept tls1.2 Upload a file…<\/p>\n","protected":false},"author":1,"featured_media":3565,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,32],"tags":[],"class_list":["post-3545","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-technology"],"_links":{"self":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/posts\/3545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/comments?post=3545"}],"version-history":[{"count":0,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/posts\/3545\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/media\/3565"}],"wp:attachment":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/media?parent=3545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/categories?post=3545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/tags?post=3545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}Dns-over-HTTPS<\/code> ( DoH)<\/p>\n\n\n\n
curl --doh-url https:\/\/doh-jp.blahdns.com\/dns-query https:\/\/ssl.google-analytics.com \n\n\/\/ will return fail<\/code><\/pre>\n\n\n\n
tls1.3<\/code> <\/p>\n\n\n\n
curl --tlsv1.3 -v https:\/\/0x0.st<\/code><\/pre>\n\n\n\n
curl --tlsv1.2 -v https:\/\/0x0.st<\/code><\/pre>\n\n\n\n
curl -F \"file=@a.png\" https:\/\/0x0.st<\/code><\/pre>\n\n\n\n
ipv4<\/code><\/p>\n\n\n\n
curl -4 https:\/\/0x0.st<\/code><\/pre>\n\n\n\n
curl -I https:\/\/www.photonvps.com\nHTTP\/1.1 200 OK\nServer: PokeCDN\/2\nDate: Tue, 24 Dec 2019 08:33:28 GMT\nContent-Type: text\/html\nContent-Length: 21306\nConnection: keep-alive\nLast-Modified: Wed, 03 Apr 2019 11:04:04 GMT\nAccept-Ranges: bytes\nPokeCDN: bee889ae5277ea3d80542586484af2a4<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"