Sign in to follow this  
Followers 0
FiNAlzFiNAle

InetGet problem

27 posts in this topic

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!

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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

Downloads fine using 3.1.1 or beta.

Share this post


Link to post
Share on other sites

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)

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 ?

Share this post


Link to post
Share on other sites

are you using SciTE... if you are press tools > Run Beta

but MHz says in works on both platforms

????

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

are you using SciTE... if you are press tools > Run Beta

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

Share this post


Link to post
Share on other sites

Here is the problem (I think):

Internet Explorer 3 or greater must be installed for this function to work.

Strait from the help file...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#11 ·  Posted (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 by =sinister=

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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?

1. the file size I uploaded was correct, and InetGetSize returned the correct file size too.

2. my firewall is set to allow AutoIt scripts

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

Share this post


Link to post
Share on other sites

Can you retest with the 3.1.1.108 beta version and send me the @error/@extended you are getting?

Thanks

Share this post


Link to post
Share on other sites

Can you retest with the 3.1.1.108 beta version and send me the @error/@extended you are getting?

Thanks

hm ... InetGet with beta ver 3.1.1.108 did not return @error, but it still could not download the file.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

$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

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