Sign in to follow this  
Followers 0
mymicha

60sec Delay in InetGet() on some Sites

5 posts in this topic

Hi,

I have a problem with the InetGet() function. When I call this function, to get a file from a site, my script waits 60sec and then saves the file on my hdd. It doesn't matter, if I use HTTP or HTTPS (the site is on both protocols available). When I try this with a other site/server - like the Google logo on the first page - it works fine. Something will cause this delay, but I don't know what. By the way, it's the same, when I use the function InetGetSize() or _INetGetSource() or _INetGetSourcePro(). I use the newest version of AutoIT - not a beta.

Any idea?

Thanks a lot

Micha

Share this post


Link to post
Share on other sites



Hi,

I have a problem with the InetGet() function. When I call this function, to get a file from a site, my script waits 60sec and then saves the file on my hdd. It doesn't matter, if I use HTTP or HTTPS (the site is on both protocols available). When I try this with a other site/server - like the Google logo on the first page - it works fine. Something will cause this delay, but I don't know what. By the way, it's the same, when I use the function InetGetSize() or _INetGetSource() or _INetGetSourcePro(). I use the newest version of AutoIT - not a beta.

Any idea?

Thanks a lot

Micha

Are you sure that the issue is with InetGet() ?

Is there an imbedded download delay on that particular website?

If you could give us the address it would help a lot...

Share this post


Link to post
Share on other sites

Hi,

I found out some new interesting characteristics: When I try to download a file with INetGet(), the file is downloaded and saved to my hdd and then my script waits exact 60sec. I think there is a problem, to close the HTTP session.

Here an example URL:

Picture to test ...

Thanks

Micha

Share this post


Link to post
Share on other sites

Now I know where the problem is ...

In our company and at home I use a automatic proxy configurations script. This works with IE an Firefox fine, but the autoit function gets some trouble with a few sites. I don't know why. When I use a direct proxy configuration (IP and Port in connection tab of IE) or no proxy, I have no problems.

The autoit function INetGet(), INetGetSize(), _INetGetSource() and _INetGetSourcePro() uses the Microsoft DLL "wininet.dll" to do all this stuff. I think there is the problem, when I use a automatic proxy configuration script.

So I think the problem is solved for me. I will configure a direct proxy configuration in my autoit script (HttpSetProxy). But I think there is a bug in the Microsoft DLL.

Micha.

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