Open source

rusttp

An httpie-style HTTP client for the terminal

StableRustMIT

About

rusttp is an HTTP client with httpie-style request syntax. JSON fields, raw JSON values, query parameters, headers and file uploads are written on one line. The response is shown with syntax highlighting. --offline prints the request without sending it. It is a single native binary and needs no Python. It implements only a subset of the httpie syntax.

Features

  • Request items: key=value, key:=json, key==query, Header:value and key@file
  • JSON, form and multipart bodies
  • Highlighted response output and --raw for plain output
  • --offline prints the request without sending it
  • Basic and bearer auth, proxy, redirect following, download to file

Requirements

Rust 1.85+ to build from source (edition 2024); Linux, macOS or Windows release binaries

Install

curl -fsSL https://raw.githubusercontent.com/Ankara-Software/rusttp/master/install.sh | sh
cargo install --git https://github.com/Ankara-Software/rusttp

Usage

rusttp https://httpbin.org/get
rusttp POST https://httpbin.org/post name="Anilcan Kara" age:=28 active:=true
rusttp --offline POST https://httpbin.org/post name=Anilcan
GitHub repository
https://github.com/Ankara-Software/rusttp
Report an issue
https://github.com/Ankara-Software/rusttp/issues
Security policy
SECURITY.md
License file
LICENSE (MIT)
Last update

Want to contribute?

Bug reports and pull requests are handled on GitHub.