Wget, Curl and POST (refs): Difference between revisions

From WikiMLT
No edit summary
 
mNo edit summary
Line 1: Line 1:
* [https://askubuntu.com/q/968652/566421 GET и POST заявки с <code>wget</code> и <code>curl</code>.]
Download a script from '''PasteBin''' by <code>curl</code>:
* [https://askubuntu.com/a/1031908/566421 Виж също: Auto login on page.]
<syntaxhighlight lang="bash">
 
== WGET ==
== CURL ==
* Сваляне на скрипт от '''PasteBin''' с <code>curl</code>:
:<syntaxhighlight lang="bash">
curl https://pastebin.com/raw/wvV9B1nf | sed -e 's/\r$//' | sudo tee /var/www-security/security-assistant.bash
curl https://pastebin.com/raw/wvV9B1nf | sed -e 's/\r$//' | sudo tee /var/www-security/security-assistant.bash
sudo chmod +x /var/www-security/security-assistant.bash
sudo chmod +x /var/www-security/security-assistant.bash
</syntaxhighlight>
</syntaxhighlight>
:* [[Remove Carriage Return]]
References:
 
* [https://askubuntu.com/q/968652/566421 GET and POST requests by Wget and/or CURL]
<noinclude>
* [https://askubuntu.com/a/1031908/566421 Auto login on page via CLI by the POST command.]
[[Category:Ubuntu Scripts and Commands|5]]
* [[Text_Processing:_Remove_Carriage_Return]]
</noinclude>

Revision as of 14:23, 5 August 2022

Down­load a script from Paste­Bin by curl:

curl https://pastebin.com/raw/wvV9B1nf | sed -e 's/\r$//' | sudo tee /var/www-security/security-assistant.bash
sudo chmod +x /var/www-security/security-assistant.bash

Ref­er­ences: