Graeme Posted March 13, 2020 Posted March 13, 2020 I run MsgBox(0,"",_INetGetSource("https://curl.haxx.se/download.html",True)) And the result is blank. I replace the url with other urls and I get info. I open the given url with FIrefox and I get a webpage and I look at the source and I see stuff, lots of it. Why does _INETGetSource give me a blank return?
Danp2 Posted March 13, 2020 Posted March 13, 2020 You need to check the value of @error after calling _INetGetSource -- #include <Inet.au3> $sHTML = _INetGetSource("https://curl.haxx.se/download.html",True) MsgBox(0, "Result", "Error = " & @error & @CRLF & "HTML = " & $sHTML) Latest Webdriver UDF Release Webdriver Wiki FAQs
Colduction Posted March 13, 2020 Posted March 13, 2020 Hi @Graeme, If you're running under XP OS, you can't get HTTPS site's source code If you are running higher versions of Windows OS, use HTTP.au3 by trancexx
Graeme Posted March 16, 2020 Author Posted March 16, 2020 Thanks for this. Funny thing is that the site seems to be returning normal values now.:)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now