Skip to content

Instantly share code, notes, and snippets.

@rollin96
Last active December 23, 2021 13:48
Show Gist options
  • Save rollin96/75e6c143c0fc334dd46d183f3a5c4407 to your computer and use it in GitHub Desktop.
Save rollin96/75e6c143c0fc334dd46d183f3a5c4407 to your computer and use it in GitHub Desktop.
# POST 요청으로 login 후에 결과 cookie 저장.
# 아래 요청은 파라메터를 STDID(-)으로 입력하게 된다.
$ curl -X POST -c cookies.txt -d "@-" http://xxx.xx/login
username=xxx&password=yyy
<ctrl+D>
# 위와 같이 저장한 쿠키를 이용해서(-b) 요청을 하게 되고, 그 결과를 다시 저장(-c)한다.
$ curl -b cookies.txt -c cookies.txt http://xxx.yyy/abcd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment