Jump to content

InetGet problem


Recommended Posts

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!

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

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

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

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

Link to comment
Share on other sites

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=
Link to comment
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?

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

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

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

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

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

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