Jump to content
Sign in to follow this  
amakrkr

Download file - a little advice needed

Recommended Posts

amakrkr

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 site

If 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!

Share this post


Link to post
Share on other sites
AlmarM

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.

Share this post


Link to post
Share on other sites
amakrkr

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...

Share this post


Link to post
Share on other sites
1RV34

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 by 1RV34

MsgBox(0x40040, "", "Hello Forum!")

Share this post


Link to post
Share on other sites
AdmiralAlkex

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×