Advertisement
Guest User

Untitled

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