nt-client is a simple command-line HTTP client written in Rust. It supports making GET and POST requests over TCP connections, allowing you to specify the host, port, request path, HTTP method, and request body.
- Make HTTP GET and POST requests.
- Customize host, port, path, HTTP method, and body via CLI flags.
- Supports sending JSON payloads.
- Prints HTTP response status and summary.
- Lightweight and easy to extend.
Make sure you have Rust and Cargo installed. Then clone the repo and build the project:
git clone https://github.com/yourusername/nt-client.git
cd nt-client
cargo build --release
cargo run -- --host example.com --port 80 --path /posts/1 --method GET## Demo
cargo run -- --host jsonplaceholder.typicode.com --port 80 --path /posts --method POST --body '{"title":"foo","body":"bar","userId":1}'