我正在尝试登录 Moddle 并获取一些日志文件:
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")
但我将登录页面作为 txt 文件获取。我应该怎么办?