command
module
Version:
v0.0.0-...-a7da90b
Opens a new window with list of versions in this module.
Published: Apr 10, 2015
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
HTTP requests over UNIX socket
I wanted to try docker API without binding it on a TCP socket.
Curl doesn't work on UNIX socket, so I've developped that:
Build
go get github.com/Soulou/curl-unix-socket
Archlinux
You can install curl-unix-socket-git
from AUR, thank you @slopjong
RUN
./curl-unix-socket unix:///var/run/docker.sock:/v1.6/images/json
Flags
-X
: HTTP Verb [GET|POST|DELETE|...]
-d
: Request data
-H
: Additional Headers
- Example:
-H 'Accept: application/json|Content-type: application/json'
-b
: Add Cookie
- Example:
-b 'Key=Value|Key2=Value2'
-https
: Make an HTTPS request over the unix socket
-k
: Allow unsecure HTTPS requests, don't check certificate
-v
: Verbose
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.