Jump to content

_InetGetSource will not work at all


Recommended Posts

Hi everyone,

I am having an unusual problem: _InetGetSource does not work at all for me, even the most simplest of code:

#Include <INet.au3>
$url = "http://www.google.com/"
$source = _INetGetSource($url)
MsgBox(4096,"Source",$source)

Produces a blank message box ...

#include <Inet.au3>
Local $sFilename = @TempDir & "\autoit_version.dat"
Local $nBytesRead = InetGet("http://www.autoitscript.com/autoit3/files/beta/update.dat", $sFilename, 1)
Local $sVersion = IniRead($sFilename, "AutoIt", "version", -1)
FileDelete($sFilename)
ConsoleWrite("Bytes read: " & $nBytesRead & @CRLF & $sVersion & @CRLF)

Console output is:

Bytes read: 0

I am using wireless internet on 32-bit Windows 7.

Any help is much appreciated :idea:

Link to comment
Share on other sites

Can you perform any network based action via Autoit?

Try doing a ping() ... Maybe firewall is blocking it?

I know the inet.... functions are dependant on Internet Explorer (Not sure about _Inet..., haven't checked yet). Does your Internet Explorer work properly?

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