GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - joncloud/https: Simple CLI for sending HTTP requests

BranchesTags
Open more actions menu

Latest commit

 

History

74 Commits
74 Commits

Folders and files

NameName
Last commit message
Last commit date
src/https
src/https
 
 
tests/https.Tests
tests/https.Tests
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
azure-pipelines.yml
azure-pipelines.yml
 
 
global.json
global.json
 
 
https.sln
https.sln
 
 

Repository files navigation

https

NuGet Build Status

Description

https is a simple CLI for sending HTTP requests.

Licensing

Released under the MIT License. See the LICENSE File for further details.

Installation

Install https as a global .NET tool using

dotnet tool install --global https --version 0.3.0-*

Usage

Urls without a protocol, i.e., http:// or https://, by default will be assigns the https:// protocol.

Usage: https <METHOD> <URI> [options] [content]

Submits HTTP requests. For example https put httpbin.org/put hello=world

Arguments:
  <METHOD>    HTTP method, i.e., get, head, post
  <URI>       URI to send the request to. Leaving the protocol off the URI defaults to https://

Options:
  --form                Renders the content arguments as application/x-www-form-urlencoded
  --help                Show command line help.
  --ignore-certificate  Prevents server certificate validation.
  --json                Renders the content arguments as application/json.
  --timeout=<VALUE>     Sets the timeout of the request using System.TimeSpan.TryParse (https://docs.microsoft.com/en-us/dotnet/api/system.timespan.parse)
  --version             Displays the application verison.
  --xml=<ROOT_NAME>     Renders the content arguments as application/xml using the optional xml root name.
  --stop-auto-redirects Prevents redirects from automatically being processed.

Content:
Repeat as many content arguments to create content sent with the HTTP request. Alternatively pipe raw content send as the HTTP request content.
  <KEY>=<VALUE>

Headers:
Repeat as many header arguments to assign headers for the HTTP request.
  <KEY>:<VALUE>

For example https put httpbin.org/put hello=world will output:

HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.9.0
Date: Sat, 13 Oct 2018 03:09:13 GMT
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Via: 1.1 vegur
Content-Type: application/json
Content-Length: 423
{
  "args": {},
  "data": "{\"hello\":\"world\"}",
  "files": {},
  "form": {},
  "headers": {
    "Connection": "close",
    "Content-Length": "17",
    "Content-Type": "application/json; charset=utf-8",
    "Host": "httpbin.org",
    "User-Agent": "dotnet-https/0.1.1.0",
    "X-Content": "content-x"
  },
  "json": {
    "hello": "world"
  },
  "origin": "50.53.112.92",
  "url": "https://httpbin.org/put"
}

About

Simple CLI for sending HTTP requests

Topics

clihttphttp-clienthttpsrequestsimple

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

9 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.