0
2
This is tricky. I want to use curl, wget or any other tool to login into a SSL Website which provides a Login Form. Then I want to visit several Links within that Domain and fetch certain images.
I got it to work with this in bash:
curl -c /tmp/cookie.txt -d "login=username&password=passw&send=submit" https://URI
Use the cookie later with
curl -b /tmp/cookie.txt https://URI
The trick was that you have to submit the credentials to the action=
adress of the html form field.
Another problem I face now is that this writes no image because the URL of the image is constructed out of some Servlet URI:
<img src="URI/servlet/manyParametersWith?And=AndLotsOf&">
Thank you for your efforts. I will try your example in future projects. – meshfields – 2010-09-14T01:34:03.063