Curlie in Termux – Modern Command Line HTTP Client

Curlie is a simple command-line HTTP client for working with websites and APIs from the terminal. It provides options to send HTTP requests, check response headers, send data, download files, and test APIs. Curlie can be installed on Termux with a simple command and provides useful features for working with HTTP requests.

Here’s what you can do with Curlie:

  • Send HTTP GET and POST requests.
  • View website response headers.
  • Test REST APIs.
  • Send custom HTTP headers.
  • Send form data.
  • Download files.
  • Test different HTTP methods.
  • Work with JSON APIs.
  • Inspect HTTP responses directly from the terminal.

Install Curlie in Termux

You only need one command to install Curlie in Termux, run the command below.

First, update the Termux packages.

pkg update && pkg upgrade -y

Install Curlie.

pkg install curlie -y

Check if Curlie is installed correctly.

curlie --version

You can also check the available options.

curlie --help

Usage Commands

You can use different options to send HTTP requests, check website responses, view headers, send data, and work with APIs.

Send a basic GET request to a website.

curlie https://example.com

This will send a request to the website and display the response.

View only the response headers.

curlie -I https://example.com

Send a GET request with a custom header.

curlie -H "User-Agent: MyBrowser" https://example.com

Send a POST request.

curlie -X POST https://example.com

Send form data with a POST request.

curlie -X POST -d "name=John&email=test@example.com" https://example.com

Send JSON data to an API.

curlie -X POST -H "Content-Type: application/json" -d '{"name":"Achik"}' https://example.com/api

Specify a different HTTP method.

curlie -X PUT https://example.com

You can also use DELETE:

curlie -X DELETE https://example.com

Save the response to a file.

curlie https://example.com -o response.html

Follow HTTP redirects.

curlie -L https://example.com

Add multiple custom headers.

curlie -H "Accept: application/json" -H "User-Agent: MyClient" https://example.com

Send basic authentication credentials.

curlie -u username:password https://example.com

For more available options, use:

curlie --help

You can try different Curlie commands to understand how HTTP requests and responses work.

End Note

Curlie is a simple and useful tool for sending HTTP requests in Termux. With a few easy commands, you can check websites, test APIs, view headers, and work with different types of HTTP requests.

SHARE THIS POST: