Outils pour utilisateurs

Outils du site


tech:notes_curl_wget

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_curl_wget [2026/06/17 11:06] Jean-Baptistetech:notes_curl_wget [2026/09/10 14:52] (Version actuelle) Jean-Baptiste
Ligne 186: Ligne 186:
 ~~~ ~~~
  
-Upload+ 
 + 
 +### Upload 
 ~~~bash ~~~bash
 curl -v -u admin:admin123 --upload-file pom.xml http://localhost:8081/repository/maven-releases/org/foo/1.0/foo-1.0.pom curl -v -u admin:admin123 --upload-file pom.xml http://localhost:8081/repository/maven-releases/org/foo/1.0/foo-1.0.pom
Ligne 237: Ligne 240:
 wget -O plop https://getsession.org/linux wget -O plop https://getsession.org/linux
 # Saving to: ‘plop' # Saving to: ‘plop'
 +~~~
 +
 +
 +### Fichier config .wgetrc
 +
 +`~/.wgetrc`
 +~~~bash
 +# https://www.gnu.org/software/wget/manual/html_node/Wgetrc-Commands.html
 +
 +# Set the certificate authority bundle file to file. The same as ‘--ca-certificate=file’.
 +ca_certificate = file
 +
 +# Set the directory used for certificate authorities. The same as ‘--ca-directory=directory’.
 +ca_directory = directory
 +
 +
 +header = Accept: */*
 +header = Accept-Language: en-US,en;q=0.8
 +header = Keep-Alive: 300
 +user_agent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36
 +
 +# bind_address = 202.x.x.x
 +# referer = http://www.google.com
 ~~~ ~~~
  
Ligne 334: Ligne 360:
 TODO : equivalement pour Redhat avec `update-ca-trust` TODO : equivalement pour Redhat avec `update-ca-trust`
  
-`.curlrc`+`~/.curlrc`
 ~~~bash ~~~bash
 cacert=/home/jean/cert.pem cacert=/home/jean/cert.pem
 +~~~
 +
 +`~/.wgetrc`
 +~~~bash
 +# Set the certificate authority bundle file to file. The same as ‘--ca-certificate=file’.
 +ca_certificate = /home/jean/cert.pem
 +
 +# Set the directory used for certificate authorities. The same as ‘--ca-directory=directory’.
 +#ca_directory = directory
 ~~~ ~~~
  
Ligne 344: Ligne 379:
 insecure insecure
 ~~~ ~~~
 +
 +
 +
  
 https sous java https sous java
tech/notes_curl_wget.1781687167.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki