22 lines
419 B
Markdown
22 lines
419 B
Markdown
|
|
||
|
+++
|
||
|
date="2022-12-24"
|
||
|
author="spanskiduh"
|
||
|
title="Curl"
|
||
|
description="click to read Curl"
|
||
|
+++
|
||
|
|
||
|
|
||
|
# Curl
|
||
|
|
||
|
### Download any file
|
||
|
- `curl -o <file.extension> <url>` -download with new filename
|
||
|
- `curl -O <url>` - download with original filename
|
||
|
|
||
|
useful flags:
|
||
|
- `-L` - use redirection
|
||
|
- `-H 'key:value'` - add header
|
||
|
|
||
|
- `curl -IL ssrd.io` - get information about server
|
||
|
- `url -vL ssrd.io` - display handshake with a server
|