Skip to content

Instantly share code, notes, and snippets.

@warabanshi
Created October 30, 2019 06:28
Show Gist options
  • Save warabanshi/a4f03019739dd32fd5172b4449415e50 to your computer and use it in GitHub Desktop.
Save warabanshi/a4f03019739dd32fd5172b4449415e50 to your computer and use it in GitHub Desktop.
send curl request with session id
$ curl -v -X POST -F "id=something" -F "pass=something" https://example.com/login
> ...
> Cookie: PHPSESSID=xxxxxxxxxxxxxxxxxxxxxx
> ...
# use returned session id
$ curl --cookie "PHPSESSID=xxxxxxxxxxxxxxxxxxxxxx" https://example.com/something
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment