Jump to content

Download file - a little advice needed


amakrkr
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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

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

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!")
Link to comment
Share on other sites

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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...