I'm trying to login Moddle and get some log files with this:
postForm('http://ead.portalinstitutounibanco.org.br/login/index.php',
username = "Username value",
password = "Password value",
submitButton = "Acesso",
style = "POST")
url <- "http://ead.portalinstitutounibanco.org.br/course/report/log/index.php?chooselog=1&showusers=1&showcourses=1&id=149&user=0&date=0&modid=&modaction=0&logformat=downloadascsv"
download.file(url, destfile = "log2.txt")
But I'm getting the login page as the txt file. What should I do?