Skip to content

kurly is an alternative to the widely popular curl program, written in Golang.

License

Notifications You must be signed in to change notification settings

Wolphin-project/kurly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kurly

Build Status

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

Pre-requisite: Golang version 1.7.4 or higher.

From source you can simply:

go get github.com/davidjpeacock/kurly

OS Package

kurly can be installed through package management systems on the following platforms:

  • Arch Linux via Arch User Repos - pacaur -S kurly or yaourt -S kurly

If you're a package maintainer and you have prepared kurly for your OS of choice, please PR this section.

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.

About

kurly is an alternative to the widely popular curl program, written in Golang.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%