Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LOGINURL="http://www.[redacted].edu/login/index.php" # This is not https because they don't support it.
- COURSEURL="http://www.[redacted].edu/course/[redacted]"
- USERAGENT="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
- COOKIEJAR="${HOME}/edu.cookies"
- POSTDATA="[redacted]"
- curl -o "index.html" --referer "${LOGINURL}" --user-agent "${USERAGENT}" --cookie-jar "${COOKIEJAR}" --data "${POSTDATA}" "${LOGINURL}"
- curl -o "course.html" --referer "${LOGINURL}" --user-agent "${USERAGENT}" --cookie-jar "${COOKIEJAR}" "${COURSEURL}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement