Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
system:curl [2017/01/04 20:48] – [CURL] mirocowsystem:curl [2024/02/09 02:44] (текущий) mirocow
Строка 1: Строка 1:
 +{{tag>curl fetch wget client "http client"}}
 +
 ====== CURL ====== ====== CURL ======
 +
 +| **Method**  | **Command**                                    |
 +| **curl**    | sh -c "$(curl -fsSL https://raw.site/install.sh)"  |
 +| **wget**    | sh -c "$(wget -O- https://raw.site/install.sh)"    |
 +| **fetch**   | sh -c "$(fetch -o - https://raw.site/install.sh)"  |
  
 <code> <code>
Строка 172: Строка 179:
  -q                  Disable .curlrc (must be first parameter)  -q                  Disable .curlrc (must be first parameter)
 </code> </code>
 +
 ===== GET ===== ===== GET =====
  
 <code bash> <code bash>
 $ curl -X GET -L http:// $ curl -X GET -L http://
 +</code>
 +
 +==== Бесшумное ====
 +
 +<code bash>
 +$ curl -s -X GET -L http://
 </code> </code>
  
Строка 206: Строка 220:
 <code bash> <code bash>
 $ curl --tr-encoding -X POST -v -# -o output -T filename.dat -L http://file-download.dat $ curl --tr-encoding -X POST -v -# -o output -T filename.dat -L http://file-download.dat
 +</code>
 +
 +===== Proxy =====
 +
 +<code bash>
 +$ curl -x my.proxy.com:3128 -O http://example.net/myfile.zip
 </code> </code>
 ===== Добавить header ===== ===== Добавить header =====