kurly

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2017 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL