Skip to content

Instantly share code, notes, and snippets.

@mchelen
Last active August 30, 2016 17:24
Show Gist options
  • Save mchelen/3b908ec4b371b329352524bfdee570af to your computer and use it in GitHub Desktop.
Save mchelen/3b908ec4b371b329352524bfdee570af to your computer and use it in GitHub Desktop.
Pipe cookie between curl commands

pipe cookie output to stdout with -c - and then read cookie from stdin with -b @-

curl -d "[email protected]&password=password" localhost:3000/login -c - | curl -b @- localhost:3000/account
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment