amakrkr Posted February 22, 2012 Share Posted February 22, 2012 Hello to all who read this,What i want to make is a background - silent download of a file but i have encountered a problem and i dont even know how to google it.If you look at posted URL you can see file that needs to be downloaded in top-right corner of the page named XML.URL - to the internet siteIf you try to look up URL of the file it gets you a "java element".Now I ask you ... can someone point me to the right direction how to get it downloaded?I tried to look up for functions like Inetget and similar but all require URL directly to the file.Any help would be apreciated!Thank you for reading! Link to comment Share on other sites More sharing options...
AlmarM Posted February 22, 2012 Share Posted February 22, 2012 If you know where the file "SKP_V2.xml" is located on their servers you could use the INet functions.Else you should take a look at the _IE functions. Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
amakrkr Posted February 22, 2012 Author Share Posted February 22, 2012 If you know where the file "SKP_V2.xml" is located on their servers you could use the INet functions.Else you should take a look at the _IE functions.Thank you for replaying to my post.Is there a way to find out where file is located on their servers?And those _IE functions ... they require IE explorer to be opened right? I am looking for a solution that does not require an open browser... Link to comment Share on other sites More sharing options...
1RV34 Posted February 22, 2012 Share Posted February 22, 2012 (edited) If you look at the source code you can see they use a hidden form to post data to the server and the server sends the file back. <form name="Form1" method="post" action="tabela.aspx?cvn=1182" id="Form1"> <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value=""> <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value=""> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTE0NzM0NDIwOA8WAh4IRmlsZU5hbWUFBlNLUF9WMhYCAgUPZBYCAgEPDxYCHgRUZXh0BStTS1AgLSBTdGFuZGFyZG5hIGtsYXNpZmlrYWNpamEgcG9rbGljZXYsIFYyZGRkhy/yOpHfqyaGaRtCF1X0b1TijrdeqyELXxLp4DzaBLQ="> <script type="text/javascript"> <!-- var theForm = document.forms['Form1']; if (!theForm) { theForm = document.Form1; } function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } } // --> </script> <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBgLQ053XDQL9jOOoBAKy46z3AQK9zJaBCQLs0bLrBgKM54rGBmYTB/wKHcf2yVl+ZYQ9UmSdIxY8S5QLw5U7WcgMzesR"> </form> Try to POST the same data via AutoIt. Good luck. Edited February 22, 2012 by 1RV34 MsgBox(0x40040, "", "Hello Forum!") Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 22, 2012 Share Posted February 22, 2012 And those _IE functions ... they require IE explorer to be opened right? I am looking for a solution that does not require an open browser...It doesn't have to be visible. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
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