Sign in to follow this  
Followers 0
GrayFox

_InetGetSource will not work at all

3 posts in this topic

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:

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

hawky that was it! Thanks so much for solving the problem - IE was set to use a nonfunctioning proxy server >< ...

If I could +rep you I would. Everything works great now :idea:

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