Jump to content
Sign in to follow this  

INetGetSource returns no text for valid URL

Recommended Posts

Windows XP Home - SP 3

Working in SciTE

I cannot get the INetGetSource function to work.

AutoIt scripts work OK for me, but the INetGetSource doesn't retrieve any thing from known sites such as Google or even AutoItScript.com. (I have internet connectivity, and I have the INet.au3 include).

Even the example script given on this website for this function does not return anything.

The following code (given at http://www.autoitscript.com/autoit3/docs/libfunctions/_INetGetSource.htm) returns nothing in the Console:

#include <INet.au3>

I did try a variation, without success, which waits in a while loop until it has the source text before displaying.

Is this incorrect code, or is some other vital thing missing?


Share this post

Link to post
Share on other sites

I think your problem is not related with autoit.

I think theris something misconfiguration with your IE-proxy setting(may be not working proxy ?)

Anyway firstly check inetcpl.cpl's connections tab for proxy configuration.

I think problem related with it.

Another think may be in eg: FW blocking it?

BTW inetget() works for you?or it has this problem?

This example works for me in WIN XP SP2<br><br>Also try to compile <br>

<br>#include &lt;INet.au3&gt;<br>MsgBox(64,"",_INetGetSource('http://www.autoitscript.com'))<br>
<br><br>And then run it .<br>If it works for you from compiled *.exe this means %programfiles%\AutoIt3\AutoIt3.exe was blocked by firewall.<br><br> Edited by Fire

[size="5"] [/size]

Share this post

Link to post
Share on other sites


Have a look at HttpSetProxy(), to either specify explicitely "no proxy" / "proxy:port"

Use wireshark to catch the traffic, compare the capture to what you get when you use a webbrowser to surf the same URL.

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post

Link to post
Share on other sites

OK, I've tried most of your suggestions:

1. It appears that this unit is not set up as a Proxy Server. Should it be?

2. Compiling & running does not work either, so I don't know if this about AutoIt.exe being blocked.

3. INetGet does not work either (Returns 0, I believe. And INetGetInfo returns empty).

4. I tried "no proxy" and "default" settings for HttpSetProxy(). No change in result.

5. Windows Firewall apparently will not allow adding AutoIt.exe as a firewall exception program.

Is this still a matter of settings?


Share this post

Link to post
Share on other sites

Sorry for the response delay. Was in hospital.

The winHTTP method works well. It will make a fine alternative to _INetGetSource!

Thank you

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...