Skip to content

jigish/curl-unix-socket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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'
  • -v: Verbose

About

Run HTTP requests over UNIX socket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%