32
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

curlでunix domain socket経由アクセスする

Last updated at Posted at 2016-04-08

本当に毎回毎回毎回書式を忘れてググるので自分用にメモしておく
(manにもきちんと書いてないし…)

フォーマット

curl --unix-socket <ソケットへのパス> http:<URLパス>

curl --unix-socket /var/run/app.sock http://localhost/
curl --unix-socket /var/run/app.sock http://localhost/hoge.json

こんな感じでcurlでも Unix Domain Socket 経由でアクセスできる。
ただし、curlバージョン7.40以上である必要があります。

32
25
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
32
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?