curl

概要

curl(cURL)はさまざまなプロトコルを用いてデータを転送するライブラリとコマンドラインツールを提供するプロジェクト。コマンドラインツールは各種オプションテキストで指定できるため、Web開発でよく用いられる。

curl -IL google.com
HTTP/1.1 301 Moved Permanently
Location: http://www.google.com/
Content-Type: text/html; charset=UTF-8
Content-Security-Policy-Report-Only: object-src 'none';base-uri 'self';script-src 'nonce-OxdfEqX4nfYteM5Icy6NmQ' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
Date: Sat, 10 Feb 2024 04:11:37 GMT
Expires: Mon, 11 Mar 2024 04:11:37 GMT
Cache-Control: public, max-age=2592000
Server: gws
Content-Length: 219
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN

HTTP/1.1 200 OK
Content-Type: text/html; charset=ISO-8859-1
Content-Security-Policy-Report-Only: object-src 'none';base-uri 'self';script-src 'nonce-RdP3O7_D7IWRgheFh_zdJw' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Date: Sat, 10 Feb 2024 04:11:37 GMT
Server: gws
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Transfer-Encoding: chunked
Expires: Sat, 10 Feb 2024 04:11:37 GMT
Cache-Control: private
Set-Cookie: 1P_JAR=2024-02-10-04; expires=Mon, 11-Mar-2024 04:11:37 GMT; path=/; domain=.google.com; Secure
Set-Cookie: AEC=Ae3NU9O0JS_i6RnS-7Nm39PJa8UHAQ_RtOOeZivP_TSx7R7277flcFYLuQ; expires=Thu, 08-Aug-2024 04:11:37 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
Set-Cookie: NID=511=FHpGihgkqm9betvu58dEs--zhh6h4o1r93po-9Vzafu-_YfAIH8YqzJ5cleTTsdwGl4yTRPpuHqwmKvG6dqJ3iSy0BKTD2Ygk97BQ017IAHUnqsf7rKox8tLuSUiuo7-eaHoPZ0r0e9SQke_HseIxeged-Ww-8u7ohvWpgtJjYc; expires=Sun, 11-Aug-2024 04:11:37 GMT; path=/; domain=.google.com; HttpOnly

Memo

Tasks

Reference

Archives