httprequest() not a function
Posted: Sun Jul 21, 2019 8:27 am
Hello, I have found several examples on this forum that use the
httprequest() function. It is documented in the online documentation but not on my local documentation.
When I try out the examples my version of purebasic gives an error that the function is not valid. This is the code I copied and pasted
Any help with thanks. Stephen
httprequest() function. It is documented in the online documentation but not on my local documentation.
When I try out the examples my version of purebasic gives an error that the function is not valid. This is the code I copied and pasted
Code: Select all
InitNetwork()
HttpRequest = HTTPRequest(#PB_HTTP_Get, "https://www.google.com")
If HttpRequest
Debug "StatusCode: " + HTTPInfo(HTTPRequest, #PB_HTTP_StatusCode)
Debug "Response: " + HTTPInfo(HTTPRequest, #PB_HTTP_Response)
FinishHTTP(HTTPRequest)
Else
Debug "Request creation failed"
EndIf