Difference between revisions of "Curl -Is"
Jump to navigation
Jump to search
(Created page with " curl -Is https://yourdomain.com/ | head -1 == See also == * {{cURL}}") |
|||
(13 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | curl - | + | {{lowercase}} |
+ | curl -I --head Show document info only | ||
+ | [[curl -I]]s https://yourdomain.com/ | [[head -1]] | ||
+ | |||
+ | [[curl -I]]s https://yourdomain.com/ | [[head -1]] | ||
+ | [[HTTP/1.1]] [[301]] [[Moved Permanentl]] | ||
+ | |||
+ | [[curl]] -Is https://google.com | head -1 | ||
+ | [[HTTP/2]] 301 | ||
+ | |||
+ | [[curl -I]] --head Show document info only | ||
+ | |||
+ | curl -I localhost:8332 | ||
+ | [[HTTP/1.1]] [[405 Method Not Allowed]] | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[curl -s]]</code> | ||
== See also == | == See also == | ||
* {{cURL}} | * {{cURL}} | ||
+ | * {{HTTPS}} | ||
+ | |||
+ | [[Category:cURL]] |
Latest revision as of 12:27, 19 November 2024
curl -I --head Show document info only
curl -Is https://yourdomain.com/ | head -1
curl -Is https://yourdomain.com/ | head -1 HTTP/1.1 301 Moved Permanentl
curl -Is https://google.com | head -1 HTTP/2 301
curl -I --head Show document info only
curl -I localhost:8332 HTTP/1.1 405 Method Not Allowed
Related[edit]
See also[edit]
- cURL,
curl -s
,-X, -x
,curl -T
,curl --help
,curl -L, curl -m
,curl -o
,curl -X POST
,curl -d
,curl --header
,curl -I
,curl --silent
,curl -Is
,curl -k or curl --insecure, curl -XPUT, curl -d
,~/.curlrc, curl -i, curl --version, curl --help
- HTTP, HTTP client, HTTP/1.1, HTTP/2, HTTP/3, HTTPS, HSTS CSR, TLS, SSL,
openSSL
, WebSockets, WebRTC,ssl_certificate
QUIC, HPKP, CT, List of HTTP status codes, URL redirection, Content-type:, Webhook, HTTP headers,--insecure
, Axios HTTP client, HTTP cookies, HTTP ETag, Hypertext Transfer Protocol -- HTTP/1.1
Advertising: