Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
os:unix-commands [2022/01/26 11:38]
127.0.0.1 external edit
os:unix-commands [2022/09/12 11:17]
tomas [Komunikace]
Line 163: Line 163:
 wget http://www.seznam.cz ... stahne html stranku do soubrou\\ wget http://www.seznam.cz ... stahne html stranku do soubrou\\
 [[http://curl.haxx.se/docs/manual.html|curl]] -u user:passwd ftp:%%//%%machine.domain:port/full/path/to/file ... stahne soubor s ftp serveru\\ [[http://curl.haxx.se/docs/manual.html|curl]] -u user:passwd ftp:%%//%%machine.domain:port/full/path/to/file ... stahne soubor s ftp serveru\\
-curl -u username: %%--%%key ~/.ssh/id_dsa --pubkey ~/.ssh/id_dsa.pub scp:%%//%%shell.example.com/~/personal.txt ... stahne soubor pres ssh\\ +curl -u username: %%--key ~/.ssh/id_dsa --pubkey ~/.ssh/id_dsa.pub scp://%%shell.example.com/~/personal.txt ... stahne soubor pres ssh\\ 
-curl %%--%%ftp-ssl ftp:%%//%%files.are.secure.com/secrets.txt ... stahovani pres sftp\\+curl %%--ftp-ssl ftp://%%files.are.secure.com/secrets.txt ... stahovani pres sftp\\
 curl -u user:passwd -x my-proxy:888 http:%%//%%www.get.this/ ... stahovani pres proxy\\ curl -u user:passwd -x my-proxy:888 http:%%//%%www.get.this/ ... stahovani pres proxy\\
 curl -o aaa.html http:%%//%%mypage.org/bbb.html ... ukozi stranku do souboru aaa.html curl -o aaa.html http:%%//%%mypage.org/bbb.html ... ukozi stranku do souboru aaa.html
 curl -O http:%%//%%www.seznam.cz ... stahne stranku do souboru\\ curl -O http:%%//%%www.seznam.cz ... stahne stranku do souboru\\
 curl -T - http:%%//%%www.upload.com/myfile ... nahraje standartni vstup na stranku (Musti tam byt "PUT" znacka)\\ curl -T - http:%%//%%www.upload.com/myfile ... nahraje standartni vstup na stranku (Musti tam byt "PUT" znacka)\\
-curl -d "name=Rafael%20Sagula&phone=3320780"  http:%%//%%www.where.com/guest.cgi Posle metodou POST data\\+curl %%-d "name=Rafael%20Sagula&phone=3320780"  http://%%www.where.com/guest.cgi Posle metodou POST data\\
 curl -X POST -H "Content-Type: application/json" -d {name=a; password=b} ... posilani JSONu\\ curl -X POST -H "Content-Type: application/json" -d {name=a; password=b} ... posilani JSONu\\
-curl -F "file=@cooltext.txt" -F "yourname=Daniel" -F "filedescription=Cool text file with cool text inside" http:%%//%%www.post.com/postit.cgi ... odesle soubor a vyplni pole na strance\\+curl %%-F "file=@cooltext.txt" -F "yourname=Daniel" -F "filedescription=Cool text file with cool text inside" http://www.post.com/postit.cgi%% ... odesle soubor a vyplni pole na strance\\
 curl -A 'Mozilla/3.0 (Win95; I)' http:%%//%%www.nationsbank.com/ ... tvari se jako mozilla\\ curl -A 'Mozilla/3.0 (Win95; I)' http:%%//%%www.nationsbank.com/ ... tvari se jako mozilla\\
-curl %%--%%verbose %%--%%header 'Host: www.example.com' 'http:%%//%%10.1.1.36:8000/the_url_to_test' … Pouziti virtualni domeny na IP adrese\\ +curl %%--verbose --header 'Host: www.example.com' 'http://10.1.1.36:8000/the_url_to_test'%% … Pouziti virtualni domeny na IP adrese\\ 
-curl -w "$i: %{time_total} %{http_code} %{size_download} %{url_effective}\n" -o "/dev/null" -s http://address.cz/test.html ... vypis custom informaci k requestu (cas odezvy, http kod, velikost) - dobre pro performance testy\\+curl %%-w "$i: %{time_total} %{http_code} %{size_download} %{url_effective}\n" -o "/dev/null" -s http://address.cz/test.html%% ... vypis custom informaci k requestu (cas odezvy, http kod, velikost) - dobre pro performance testy\\