Sign in to follow this  
Followers 0
Noobster24

How to download file

6 posts in this topic

#1 ·  Posted (edited)

Hi,

suppose this is a html form on a website:

<form name='gateway' action='http://www.website.com/files.php' method='POST'>
       <div align='center'><center><br>
       <input type='hidden' name='id' value=100636>
       <input type='submit' name='submit' value='Please CLICK Here for Download.'><br><br>
       </form>

This form will submit to files.php, there will be a File Get Dialog so that you can download a zip-file, how can i download that zip-file?

Thanks in advance,

Andreas

Edited by Noobster24

Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.

Share this post


Link to post
Share on other sites



If you just want to retrieve that part of the source code, look up _InetGetSource($url) and _StringBetween

_StringBetween is in the beta only, look it up in the UDF's helpfile.

Hope that helped,

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

Look into standard UDF IE.au3 -it's also described in HelpFile - section UDF

You may open hidden IE object and click on form button.

Yeah i know the IE.au3 and i know i can do that, but the window is only invisible, the iexplore.exe is visible in the Taskmanager. Just as when i like to search something from my program from a certain website, I use this code:

$Header = "Content-Type: application/x-www-form-urlencoded"
        $Host = "domain.com"
        $File = "/index.php"
        $URL = "http://" & $Host & $File
        $PostData = "chto=" & $y
        $Internet = _InternetOpen("AXP" & $number)
        $InternetConnection = _InternetConnect($Internet, $Host)
        $Request = _HttpOpenRequest($InternetConnection, "POST", $File)
        _HttpSendRequest($Request, $Header, StringLen($Header), $PostData, StringLen($PostData))
        $Response = _InternetRead($Request)
        QuickOutput($serialfile, $Response, 2)
        _InternetCloseHandle($Internet)

With this code, there isn't a iexplore.exe in the taskmanager :P, so maybe any other way?

thankQ


Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

If you just want to retrieve that part of the source code, look up _InetGetSource($url) and _StringBetween

_StringBetween is in the beta only, look it up in the UDF's helpfile.

Hope that helped,

Kurt

Nope, i know how to get the source etc, i want to download the file :P. As you can see, the form will submit to www.domain.com/files.php with a POST statement, so it will show the File Get Dialog and with that File Get Dialog, you can download a certain zip file, and that's the file i want to download :D

Edited by Noobster24

Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.

Share this post


Link to post
Share on other sites

Any idea?


Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.

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  
Followers 0