Curl development note

In this article I’ll record some notes about curl development so that it could save time for me and used as statistics to refer.

  • get cookie and save it as file (used for security)
ivan@ivan curl --cookie-jar cookie -L http://localhost:8080/security  | grep csrf
  • request using cookie from file “cookie”
ivan@ivan curl --cookie cookie -d '{"name"="ivan", "password"="password"}' -L http://localhost:8080/security

 

 

 

 

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>