Jump to content

InetGet error 13


leb
 Share

Recommended Posts

Hello there,

I am using the function InetGet example in the help files on a website and getting the error 13. First, I searched the help files and the forum for a list of errors to consult to no avail. I suspect this is a 400's server reply based error but it would be nice to get more info about it.

Please help, thanks.

L

Link to comment
Share on other sites

Found a workaround, still interested to know is there is a list of errors posted somewhere, thks.

get_url(insert url here)

Func get_url($url)

    $RequestURL = $url;
    Global $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") ;
    $oHTTP.Open("GET", $RequestURL, False)
    $oHTTP.Send()
     if  $oHTTP.status == 200 Then
           ConsoleWrite($oHTTP.ResponseText)
     Else
            ConsoleWrite("Other status: " & $oHTTP.status)
     EndIf

 EndFunc

 

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

×
×
  • Create New...