Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yilmaz08/turl
Command-line tool to make plain TCP-based requests.
https://github.com/yilmaz08/turl
cli client curl networking request rust-lang tcp tcp-client tool
Last synced: 23 days ago
JSON representation
Command-line tool to make plain TCP-based requests.
- Host: GitHub
- URL: https://github.com/yilmaz08/turl
- Owner: yilmaz08
- License: mit
- Created: 2024-07-20T19:36:16.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-27T15:42:23.000Z (3 months ago)
- Last Synced: 2024-10-01T02:40:15.573Z (about 1 month ago)
- Topics: cli, client, curl, networking, request, rust-lang, tcp, tcp-client, tool
- Language: Rust
- Homepage:
- Size: 27.3 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# tURL
tURL is a [curl](https://github.com/curl/curl) inspired command-line tool to make plain TCP-based requests.
## Installation
You can clone the repository and use it.
```
git clone https://github.com/yilmaz08/turl
```
## Usage
```
$ cargo run -- 127.0.0.1:80 --content "GET / HTTP/1.1\r\nHost: 127.0.0.1:80\r\n\r\n"
```
This will send a HTTP request to 127.0.0.1:80 with the specified headers and content.Alternatively, you can use the recently introduced `HTTP Mode`:
```
$ cargo run -- 127.0.0.1:80 --content "request body" --http GET
```Response (on a nginx welcome page):
```
HTTP/1.1 200 OK
Server: nginx/1.26.1
Date: Sun, 21 Jul 2024 12:12:06 GMT
Content-Type: text/html
Content-Length: 615
Last-Modified: Mon, 03 Jun 2024 20:30:53 GMT
Connection: keep-alive
ETag: "665e27fd-267"
Accept-Ranges: bytesWelcome to nginx!
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }Welcome to nginx!
If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.For online documentation and support please refer to
nginx.org.
Commercial support is available at
nginx.com.Thank you for using nginx.
```
## Contributing
tURL is open-source, and we welcome contributions! If you'd like to make a change or fix a bug, please:- Open an issue to discuss your proposed changes (unless it is a small change or fix).
- Fork the repository and make needed changes on the forked repository. (If you split changes into different commits, it would be better.)
- Open a pull request to merge your changes into the main tURL repository.We appreciate any contributions, no matter how small!