, , , CAPTCHA. ,
- POST URL- (. HTML).
- cookie
- cookie ( )
I do it with wget
. curl
should be similar (see his manual).
12:
wget --keep-session-cookies --save-cookies "mycookies" \
--post-data "login=mylogin&password=mypass" submit_URL
3:
wget --load-cookies "mycookies" --keep-session-cookies --save-cookies "mycookies" \
another_URL_behind_login_form
From what I see in man curl
1-2, there should be something like this (not verified):
curl -F "login=mylogin;password=mypass" -c "mycookies" submit_URL
and 3:
curl -b "mycookies" -c "mycookies" another_URL
But I have not tried it with help curl
.
source
share