Followers 0

# Weird problem with InetGet

## 7 posts in this topic

Following is all I have in my code and I get different results between Beta and regular version of AutoIt. Somehow, my script takes a minute to complete. It should be done in few seconds.

ConsoleWrite("Started at " & @HOUR & ":" & @MIN & ":" & @SEC & @LF)
InetGet("http://xxx.com/daily/hidden.asp", @SystemDir & "\foo.txt", 1, 0)
ConsoleWrite("Loaded at " & @HOUR & ":" & @MIN & ":" & @SEC & @LF)

And here Console output for two version.

>Running:(3.2.1.13):C:\Program Files\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\joon\Desktop\test.au3"

Started at 10:26:48

+>AutoIT3.exe ended.rc:0

>Exit code: 0 Time: 62.204

>Running:(3.2.0.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\joon\Desktop\test.au3"

Started at 10:28:11

+>AutoIT3.exe ended.rc:0

>Exit code: 0 Time: 62.296

On regular AutoIt, it grab the file in less than a second, but not releasing the process for a minute. That's same with putting Exit at the forth line.

Any idea?

##### Share on other sites

Am I missing something? For the first run, how can the difference in your time outputs be greater than the total time the script ran?

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

##### Share on other sites

what happens when you try it against google and not the obscured url your using?

This is me (beta 3.2.0.13)

Started at 15:50:00
+>AutoIT3.exe ended.rc:0
>Exit code: 0   Time: 3.117

My guerss is that the server does take it's time to end the conversation.

##### Share on other sites

Am I missing something? For the first run, how can the difference in your time outputs be greater than the total time the script ran?

The script is running for 62 seconds. How did 26:46->27:47~62 seconds ?

##### Share on other sites

@mikehunt114

I don't know, but that's what I got from SciTe Console.

@Uten

running it against google.com seems normal. Question is with regular AutoIt, why did it hit the second ConsoleWrite, when it not done?

Could be this in the webpage cause it?

<META HTTP-EQUIV="Refresh" Content="30; URL=expiredpage.htm">

##### Share on other sites

#6 ·  Posted (edited)

OK, that was problem. How do I fix it?

<HTML>
<META HTTP-EQUIV="Refresh" Content="30; URL=expiredpage.htm">
<BODY>
<CENTER>Support Services </CENTER>
</BODY>
</HTML>

above HTML file cause the problem.

Thank you

Edited by Joon

##### Share on other sites

The script is running for 62 seconds. How did 26:46->27:47~62 seconds ?

Oi...I thought it was 62 ms....I need coffee.

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]