N
N
nocla2020-08-23 21:19:06
Computer networks
nocla, 2020-08-23 21:19:06

Post request with cookie using curl?

How to send a post request along with cookies using Curl from the Linux command line so that the site understands that I am an authorized user?
doesn't work like this:
curl -b "cookie1=4" example.com --data "val1=4" example.com

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-08-23
@hottabxp

curl -v --cookie "key=value" example.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question