kurly
kurly is an alternative to the widely popular curl program.
kurly is designed to operate in a similar manner to curl, with select features.
Notably, kurly is not aiming for feature parity, but common flags and mechanisms
particularly within the HTTP(S) realm are to be expected.
The current authors are not security experts, but want to contribute to the fledging
movement of replacing key tools and services with equivalents based on modern
and safe languages. We recognize that people are fallible (including
ourselves), and for this reason believe we need all the help we can get.
Several languages exist which could be used to fulfill our goal, but in this case
we picked Golang.
Installation
From source, assuming you have a recent version of Go installed on your system,
you can simply:
go get github.com/davidjpeacock/kurly
Binary download
Binaries are provided for the following platforms:
Usage
See kurly --help for usage information.
Examples
Verbose output, showing headers
$ kurly -v https://httpbin.org/ip
> GET /ip HTTP/1.1
> User-Agent [Kurly/1.0]
> Accept [*/*]
> Host [httpbin.org]
< HTTP/1.1 200 OK
< Date [Thu, 27 Apr 2017 22:46:57 GMT]
< Content-Type [application/json]
< Access-Control-Allow-Credentials [true]
< Content-Length [31]
< Via [1.1 vegur]
< Connection [keep-alive]
< Server [gunicorn/19.7.1]
< Access-Control-Allow-Origin [*]
[<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<] 31 B/31 B
{
"origin": "8.41.12.77"
}
Download file, preserving remote filename, timestamp, and following redirects
$ kurly -R -O -L http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-8.7.1-amd64-netinst.iso
[<<<<<< ] 41.2 MB/260 MB
Upload file
$ kurly -T ~/Downloads/image.jpeg https://httpbin.org/put
Posting elements with -d
$ kurly -d bingo=bongo https://httpbin.org/post
Roadmap
Succinctly, we're planning to cover all curl-like features relevant to HTTP(S), and would
love you to help.
Contributing
Bug reports, feature requests, and pull requests are all welcome.
License
kurly is Copyright (c) 2017 David J Peacock and Al S-M, and is published under the Apache 2.0 license.