All     Ethical Hacking     Networking     Programming     OSINT

curl in Termux – Installation & Basic Commands

curl is a small tool that helps you send requests to any website or server. You can use it to download files, check APIs, test URLs, and more. It works directly from the Termux terminal and is very fast for daily tasks.

Installation & Basic Commands

You can install curl easily with the package command. After installation, you can use curl to download files, get website data, or check headers.

Install curl:

pkg install curl -y

Check version:

curl --version

Get webpage content:

curl https://example.com

Download a file:

curl -O https://example.com/file.zip

Save output to a specific file:

curl https://example.com -o output.txt

Show only headers:

curl -I https://example.com

Send a POST request (API testing):

curl -X POST -d "name=denver" https://example.com/app