bbocker Posted June 21, 2012 Posted June 21, 2012 Normally, I can download the textfile on our network that I want using a browser by using this link:https://theserver.com/portal/server_controller.jsp?action=verify_open_attachment&file=file_current.txt&filetoopen=e:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/portal/devices/stuff/file_current.txtThis opens up the browser "save file" dialogue and I choose a spot and save it.What I would like to do is use AutoIt to download this textfile without the browser being opened/used. I just want something to download it in the background without the need of using the browser.I tried using Inetget but that does not work at all. I get html source (I think), but not the textfile!I do not know anything about .jsp besides that I think it stands for Java Server Pages. I'm guessing that the link instructs the server to find file_current.txt and start sending it to the browser. Is there a way for Autoit to except the file and just save it instead? There just has to be way.Thanks for any help!
stormbreaker Posted June 21, 2012 Posted June 21, 2012 How exactly did you use InetGet (I mean InetGet(bla bla))? ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1
bbocker Posted June 21, 2012 Author Posted June 21, 2012 MKISH,I tried:Inetget("https://theserver.com/portal/server_controller.jsp?action=verify_open_attachment&file=file_current.txt&filetoopen=e:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/portal/devices/stuff/file_current.txt", "file.txt")
stormbreaker Posted June 21, 2012 Posted June 21, 2012 You could try:Inetget("https://theserver.com/portal/server_controller.jsp?action=verify_open_attachment&file=file_current.txt&filetoopen=e:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/portal/devices/stuff/file_current.txt", "file.txt", 18, 0) ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now