Das Video zeigt wie simpel das ganze ist.
Und hier sind die Commands für "Copy'nPaste" (backslashes für den Zeilenumbruch):
- curl --cookie-jar cjar --output /dev/null \
http://login-formular.url
Damit erhält man das html-file, in dem es das Formular zu suchen um zu sehen, was wir im nächsten schritt als --data übertragen müssen.
- curl --cookie-jar cjar \
--data 'name=NaMe' \
--data 'whatever else is needed' \
--location \
--output "/tmp/anyname.html" \
http://login-scrip.url
Das gespeicherte .html-File sagt uns, ob wir erfolg hatten.
- curl --cookie-ja cjar \
--output "/tmp/what_i_wanted.html" \
http://password-secured.url
(via)
0 Comments:
Post a Comment