#!/bin/ksh CURLOPTS="-s -S -b cookies -c cookies -L" URL="http://forum.seda.wiai.uni-bamberg.de/forum/login.php" # Grab the login page, to start the cookie trail curl $CURLOPTS -o login_page1 $URL # Post the login form back curl $CURLOPTS -o login_page2 \ -d username=lands \ -d password=ZKg1VnZw \ -d autologin= \ -d redirect= \ -d login=Login \ $URL # Grab doc #730 curl $CURLOPTS -o file730 "http://forum.seda.wiai.uni-bamberg.de/forum/download.php?id=730"