FiNAlzFiNAle Posted February 10, 2006 Posted February 10, 2006 Hi, I have a problem with my InetGet function. It cannot download file from my web server. But if I use InetGetSize, it can give me the size of the file. I have checked my firewall and it has allowed AutoIt v3 scripts to access the Internet. HttpSetProxy is set to 1 as I have no proxy. If it is impossible to solve this, can anyone recommend any other ways to download a file from the Internet (using AutoIt) Thanks!
flyingboz Posted February 10, 2006 Posted February 10, 2006 I have a problem with my InetGet function. It cannot download file from my web server.But if I use InetGetSize, it can give me the size of the file.URL? code snippet? Failure mode description? Absent that , test w/ curl or wget. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.
FiNAlzFiNAle Posted February 11, 2006 Author Posted February 11, 2006 URL? code snippet? Failure mode description? Absent that , test w/ curl or wget. here is my code : $getUpdate = InetGet ("http://fupdates.t35.com/test.fsf", "test.fsf", 1) If $getUpdate = 0 Then MsgBox (64, "Failure", "Update File could not be downloaded") There are no error messages from AutoIt
Valuater Posted February 11, 2006 Posted February 11, 2006 here is my code : $getUpdate = InetGet ("http://fupdates.t35.com/test.fsf", "test.fsf", 1) If $getUpdate = 0 Then MsgBox (64, "Failure", "Update File could not be downloaded") There are no error messages from AutoIt it worked for me... possibly you need the beta version... its really great and stable here is a helper to get all the stuff you need http://www.autoitscript.com/forum/index.php?showtopic=21048# 8)
MHz Posted February 11, 2006 Posted February 11, 2006 here is my code : $getUpdate = InetGet ("http://fupdates.t35.com/test.fsf", "test.fsf", 1) If $getUpdate = 0 Then MsgBox (64, "Failure", "Update File could not be downloaded") There are no error messages from AutoItDownloads fine using 3.1.1 or beta.
FiNAlzFiNAle Posted February 11, 2006 Author Posted February 11, 2006 it worked for me... possibly you need the beta version... its really great and stablehere is a helper to get all the stuff you needhttp://www.autoitscript.com/forum/index.php?showtopic=21048#8)I got the beta version, but it still won't download for me.Anyway, I tried the FTP from w0uter to upload files, but there is no function to download using FTP.Is there a way to do so ?
Valuater Posted February 11, 2006 Posted February 11, 2006 are you using SciTE... if you are press tools > Run Beta but MHz says in works on both platforms ???? 8)
FiNAlzFiNAle Posted February 11, 2006 Author Posted February 11, 2006 are you using SciTE... if you are press tools > Run Betabut MHz says in works on both platforms????8)I tried it in SciTe, but to no avail.I also tried compiling the script and ran it on my other computer, still didn't work ... I wonder what could be wrong.
=sinister= Posted February 11, 2006 Posted February 11, 2006 Here is the problem (I think): Internet Explorer 3 or greater must be installed for this function to work. Strait from the help file...
FiNAlzFiNAle Posted February 11, 2006 Author Posted February 11, 2006 Here is the problem (I think):Internet Explorer 3 or greater must be installed for this function to work.Strait from the help file...yes, I have Internet Explorer version 6.0
=sinister= Posted February 11, 2006 Posted February 11, 2006 (edited) thats odd... try this - $getUpdate = InetGet ("http://fupdates.t35.com/test.fsf", "C:\test.fsf", 1) If $getUpdate = 0 Then MsgBox (64, "Failure", "Update File could not be downloaded") This will download it to C:\. If this doesn't work, then post what type of computer you have here. Edited February 11, 2006 by =sinister=
jjohn Posted February 11, 2006 Posted February 11, 2006 you might want to check... 1. the file size you get is it the same as the target's size? - may be wrong/different file name - page of denial of service 2. firewall log see if anything is blocking 3. can you download the file using other means than autoit3?
FiNAlzFiNAle Posted February 12, 2006 Author Posted February 12, 2006 you might want to check...1. the file size you get is it the same as the target's size? - may be wrong/different file name - page of denial of service2. firewall log see if anything is blocking3. can you download the file using other means than autoit3?1. the file size I uploaded was correct, and InetGetSize returned the correct file size too.2. my firewall is set to allow AutoIt scripts3. yes I can, but I would rather not.InetGetSize can work, but InetGet cannot.One question, can I use the FTP thing from w0uter to download the file ?There is a _FTPPutFile(), but there isn't a _FTPGetFile() or something.
jpm Posted February 15, 2006 Posted February 15, 2006 Can you retest with the 3.1.1.108 beta version and send me the @error/@extended you are getting? Thanks
FiNAlzFiNAle Posted February 18, 2006 Author Posted February 18, 2006 Can you retest with the 3.1.1.108 beta version and send me the @error/@extended you are getting?Thankshm ... InetGet with beta ver 3.1.1.108 did not return @error, but it still could not download the file.
jpm Posted February 18, 2006 Posted February 18, 2006 hm ... InetGet with beta ver 3.1.1.108 did not return @error, but it still could not download the file.Unless I did a mistake it should return @error if an error occur.Can you PM or post the script you are using which display the @error?Thanks
Bert Posted February 18, 2006 Posted February 18, 2006 This may sound like a stretch, but what else is running when you try to do this? Are you using a download manager or something? Have you tried to make just a example script that just downloads the file, and nothing else? If the example file is real slow, then something in your PC could be causing the slowdown. You could try to see what processes are running, and shutdown what you do not need, then test again. The Vollatran project  My blog: http://www.vollysinterestingshit.com/
Confuzzled Posted February 18, 2006 Posted February 18, 2006 Some spyware that intercepts all Internet traffic through the LSP layer is known to cause symptoms like this. Check with HiJackThis or AdAware if you are not running an updated copy of a reputable anti-spyware solution.
FiNAlzFiNAle Posted February 22, 2006 Author Posted February 22, 2006 Unless I did a mistake it should return @error if an error occur. Can you PM or post the script you are using which display the @error? Thanks $getUpdate = InetGet ("http://fupdates.t35.com/test.fsf", "test.fsf", 1) If $getUpdate = 0 Then MsgBox (64, "Failure", "Update File could not be downloaded") by default AutoIt returns 0 for failure, but does not set @error I am very sure that my computer has no spyware, and my firewall has been set to allow AutoIt scripts. If possible, can anyone of you please compile my example script and let me try, might be a problem with my AutoIt.
jpm Posted February 22, 2006 Posted February 22, 2006 $getUpdate = InetGet ("http://fupdates.t35.com/test.fsf", "test.fsf", 1) If $getUpdate = 0 Then MsgBox (64, "Failure", "Update File could not be downloaded") by default AutoIt returns 0 for failure, but does not set @error I am very sure that my computer has no spyware, and my firewall has been set to allow AutoIt scripts. If possible, can anyone of you please compile my example script and let me try, might be a problem with my AutoIt.to be secure your code to verify should be $getUpdate = InetGet ("http://fupdates.t35.com/test.fsf", "test.fsf", 1) $err=@error If $getUpdate = 0 Then MsgBox (64, "Failure error=" & $err, "Update File could not be downloaded (" & @AutoitVersion & ")") I want to be for sure you are using the right beta Thanks for the help
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