Skip to content

Instantly share code, notes, and snippets.

@craig-m
Created February 6, 2018 01:58
Show Gist options
  • Save craig-m/0ebb7c70b37436d254858db7dc089c38 to your computer and use it in GitHub Desktop.
Save craig-m/0ebb7c70b37436d254858db7dc089c38 to your computer and use it in GitHub Desktop.
curl unix socket request
pi@host:~ $ curl -X GET --unix-socket /opt/path/some.socket http/hello/curltest
<!DOCTYPE html>
<html>
<head>
<title>Hello from flask</title>
<link rel="stylesheet" type="text/css" href="/static/style.css">
</head>
<body>
<h1>Hello curltest!</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment