RealisT 0 Posted September 20, 2010 Windows XP Home - SP 3Working in SciTEI 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> ConsoleWrite(_INetGetSource('http://www.autoitscript.com'))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?Thanks Share this post Link to post Share on other sites
Fire 3 Posted September 20, 2010 (edited) 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 <INet.au3><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 September 20, 2010 by Fire [size="5"] [/size] Share this post Link to post Share on other sites
M a k a v e l ! 0 Posted September 21, 2010 Windows Firewall enabled for Autoit ? Try disabling your AV internet section It should work... [font="Lucida Sans Unicode"]M a k. a v e L ![/font] Share this post Link to post Share on other sites
rudi 32 Posted September 21, 2010 Hi. 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
RealisT 0 Posted September 23, 2010 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?Thanks Share this post Link to post Share on other sites
RealisT 0 Posted September 23, 2010 Also, no change when I add AutoIt.exe as an exception in the AV app. Share this post Link to post Share on other sites
trancexx 1,013 Posted September 23, 2010 Interesting. Try this (click that). It's IE free. ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
RealisT 0 Posted November 1, 2010 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