tech:notes_curl_wget
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_curl_wget [2026/06/10 13:57] – Jean-Baptiste | tech:notes_curl_wget [2026/06/17 11:06] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 12: | Ligne 12: | ||
| * Name : URN (Uniform Resource Name) | * Name : URN (Uniform Resource Name) | ||
| * Location : URL (Uniform Resource Locator) | * Location : URL (Uniform Resource Locator) | ||
| + | |||
| ### URI | ### URI | ||
| Ligne 40: | Ligne 41: | ||
| scheme: subdomain/ | scheme: subdomain/ | ||
| ~~~ | ~~~ | ||
| + | |||
| ## wget / curl | ## wget / curl | ||
| Ligne 60: | Ligne 62: | ||
| curl -x " | curl -x " | ||
| ~~~ | ~~~ | ||
| + | |||
| ## curl | ## curl | ||
| Ligne 65: | Ligne 68: | ||
| Voir aussi **HTTPie** | Voir aussi **HTTPie** | ||
| - | Voir [Utiliser les REST API JSON avec cURL](http:// | + | Voir : |
| + | * [Utiliser les REST API JSON avec cURL](http:// | ||
| JSON | JSON | ||
| Ligne 71: | Ligne 76: | ||
| curl -k https:// | curl -k https:// | ||
| ~~~ | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | curl --globoff --request POST \ | ||
| + | --header " | ||
| + | --url " | ||
| + | |||
| + | curl --request POST \ | ||
| + | --header " | ||
| + | --header " | ||
| + | --data '{ " | ||
| + | --url " | ||
| + | ~~~ | ||
| + | Source : https:// | ||
| + | |||
| Préciser le host sans modifier les /etc/hosts | Préciser le host sans modifier les /etc/hosts | ||
| Ligne 77: | Ligne 96: | ||
| ~~~ | ~~~ | ||
| - | Meteo (Basé sur Wego) | + | Météo |
| ~~~bash | ~~~bash | ||
| curl -4 wttr.in | curl -4 wttr.in | ||
| Ligne 113: | Ligne 132: | ||
| - | Add GPG key | ||
| - | ~~~bash | ||
| - | curl -fsSL https:// | ||
| - | ~~~ | ||
| - | |||
| - | `-f` : Fail silently on server errors \\ | ||
| - | `-s` : Silent or quiet mode. Don't show progress meter or error messages \\ | ||
| - | `-S` : When used with -s, --silent, it makes curl show an error message if it fails \\ | ||
| - | `-L` : If the server reports that the requested page has moved to a different location, this option will make curl redo the request on the new place. | ||
| Ligne 174: | Ligne 184: | ||
| # Send a fake UA string for the HTTP servers that sniff it | # Send a fake UA string for the HTTP servers that sniff it | ||
| user-agent = " | user-agent = " | ||
| - | |||
| ~~~ | ~~~ | ||
| Upload | Upload | ||
| - | ~~~ | + | ~~~bash |
| curl -v -u admin: | curl -v -u admin: | ||
| + | ~~~ | ||
| - | HTTP POST files here: | + | HTTP POST files here |
| - | curl --proxy 127.0.0.1: | + | ~~~bash |
| + | curl --proxy 127.0.0.1: | ||
| + | ~~~ | ||
| - | Or with status bar: | + | Or with status bar |
| - | curl --proxy 127.0.0.1: | + | ~~~bash |
| + | curl --proxy 127.0.0.1: | ||
| + | ~~~ | ||
| - | Upload command output: | + | Upload command output |
| - | command | curl -T - --proxy 127.0.0.1: | + | ~~~bash |
| + | command | curl -T - --proxy 127.0.0.1: | ||
| + | ~~~ | ||
| - | Upload command output with stderr: | + | Upload command output with stderr |
| - | command 2>&1 | curl -T - --proxy 127.0.0.1: | + | ~~~bash |
| + | command 2>&1 | curl -T - --proxy 127.0.0.1: | ||
| + | ~~~ | ||
| - | Or you can shorten URLs: | + | Or you can shorten URLs |
| - | curl --proxy 127.0.0.1: | + | ~~~bash |
| + | curl --proxy 127.0.0.1: | ||
| ~~~ | ~~~ | ||
| Ligne 219: | Ligne 238: | ||
| # Saving to: ‘plop' | # Saving to: ‘plop' | ||
| ~~~ | ~~~ | ||
| + | |||
| #### Autres | #### Autres | ||
| Ligne 301: | Ligne 321: | ||
| ~~~ | ~~~ | ||
| - | Voir [[Notes | + | Voir |
| + | * [[Notes | ||
| + | * [[PKI - CA - Cert - Ajouter une autorité de certification]] | ||
| Enlever la CA | Enlever la CA | ||
tech/notes_curl_wget.1781092648.txt.gz · Dernière modification : de Jean-Baptiste
