Noobster24 Posted December 25, 2006 Posted December 25, 2006 (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 December 25, 2006 by Noobster24 Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.
Zedna Posted December 25, 2006 Posted December 25, 2006 (edited) 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. Edited December 25, 2006 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
_Kurt Posted December 25, 2006 Posted December 25, 2006 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..
Noobster24 Posted December 25, 2006 Author Posted December 25, 2006 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 , so maybe any other way? thankQ Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.
Noobster24 Posted December 25, 2006 Author Posted December 25, 2006 (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,KurtNope, i know how to get the source etc, i want to download the file . 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 Edited December 25, 2006 by Noobster24 Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.
Noobster24 Posted December 27, 2006 Author Posted December 27, 2006 Any idea? Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.
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