我正试图利用 Java从一个基于格式的认证份额点下载一个文件(作为网络应用软件),但所有要求都转至日志网页。 以下是我所用的步骤:
- Get the file url, and it will be redirected to login page.
- get all parameters from the page content;
- post to login.aspx page with the parameters and account & password;
- Then Get the file and write it into a file;
The steps 3 & 4 are redirected to the login.aspx page. Maybe the 3rd step failed?
PS,
- java tool: apache HttpClient 4.1.2
- Java Code:https://www.drivehq.com/folder/p9066489.aspx
- Log:https://www.drivehq.com/folder/p9066503.aspx