Giter VIP home page Giter VIP logo

kurly's Introduction

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.

kurly's People

Contributors

alsm avatar davidjpeacock avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.