DEL HTML anchors from posts as they are going to be added automaticly with new ssg

This commit is contained in:
Caffeine Fueled 2025-10-27 20:20:04 +01:00
parent 3484b45045
commit 3d28d5eee9
Signed by: cf7
GPG key ID: CA295D643074C68C
26 changed files with 263 additions and 263 deletions

View file

@ -4,7 +4,7 @@ Curl is a powerful tool that is mainly used to transfer data. It has way more fu
Most of it should work on other operating systems too, but I'll use **Linux** as reference. I'll keep this page up-to-date and add more topics in the future.
# General <a href="#general" id="general">#</a>
# General
**Side note**: put the URL into single or double quotes if it contains special characters.
@ -14,7 +14,7 @@ A quick example to get you public IP:
: `curl brrl.net/ip`
: `curl -L brrl.net/ip` # `-L` to get through the HTTP>HTTP if necessary
#### Saving to disk <a href="#download" id="download">#</a>
#### Saving to disk
You can redirect the content from stdout to another application, save it as a file or download the target file.
@ -30,28 +30,28 @@ If you want to create a **new directory**, you can use `--create-dirs` like this
The **permission** used is 0750.
#### Specific interface <a href="#interface" id="interface">#</a>
#### Specific interface
You can use the `--interface` option to use one specific interface. You are free to use the interface name, the IP address, or the hostname.
#### Specific DNS server <a href="#dns-server" id="dns-server">#</a>
#### Specific DNS server
You can choose a specific DNS server with the following option. Multiple DNS servers can be chosen and must be separated by a comma.
`--dns-servers 9.9.9.9:53,149.112.112.112:53`
#### Redirects <a href="#redirects" id="redirects">#</a>
#### Redirects
If you want curl to follow redirects, simply use the `-L` flag.
#### Import curl options and targets from the file <a href="#import-options" id="import-options">#</a>
#### Import curl options and targets from the file
Some tasks require many options. To keep it organized, you can import those options from a file with the `-K` or `--config` and followed by the name of the file.
Example:
: `curl --config curl-options.txt https://example.com`
#### Data tranfer limits <a href="#transfer-limits" id="transfer-limits">#</a>
#### Data tranfer limits
You can set up- and download limits with `--limit-rate`. The default are bytes/second, and you can use `K`,`M`,`G`,`T` for Kilo-,Mega-,Giga- and Terabyte, respectively.
@ -61,7 +61,7 @@ You can set up- and download limits with `--limit-rate`. The default are bytes/s
--limit-rate 10M
```
#### Parallel function <a href="#parallel" id="parallel">#</a>
#### Parallel function
To let curl transfer data parallel, you can use the `-Z` or `--parallel` and choose `--parallel-immediate` to start immediately.
@ -80,11 +80,11 @@ Unreliable connections are a pain, and you can tell curl to retry and continue d
[Source from StackExchange](https://superuser.com/a/142480)
# Wildcards / Multiple downloads <a href="#wildcards" id="wildcards">#</a>
# Wildcards / Multiple downloads
**Side note**: make sure to put the full URL into single or double quotes if you work with wildcards and sequences.
#### Sets <a href="#sets" id="sets">#</a>
#### Sets
You can tell curl to transfer multiple files by putting the names into curly brac `{}`
@ -124,7 +124,7 @@ kuser@pleasejustwork:~/temp/curl$ ls
file_1_3.txt file_1_4.txt file_2_3.txt file_2_4.txt
```
#### Sequence <a href="#sequences" id="sequences">#</a>
#### Sequence
Use `[]` for alphanumeric sequences:
: `curl -O 'http://example.com/picture-[1-51].img'`
@ -138,7 +138,7 @@ Adding steps:
: `curl -O 'http://example.com/picture-[1-50:2].img'` # every second picture
# Proxies <a href="#proxy" id="proxy">#</a>
# Proxies
I am not too familiar with the proxy functions. I normally just use it to download things from Tor.
@ -157,7 +157,7 @@ The usual syntax for proxies looks like this, according to the manual:
Another example of HTTP basic auth proxy:
: `curl --proxy-basic --proxy-user user:password -x http://proxy.example https://example.com`
# Authentication <a href="#authentication" id="authentication">#</a>
# Authentication
Example for basic authentication:
: `curl -u name:password --basic https://example.com`