Created
October 30, 2019 06:28
-
-
Save warabanshi/a4f03019739dd32fd5172b4449415e50 to your computer and use it in GitHub Desktop.
send curl request with session id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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