HTTPRequest() does not work correctly in conjunction with #PB_HTTP_HeadersOnly.
As it seems, the file is downloaded completly internally and only then the HttpHeaders are displayed!
Here's an example:
Code:
InitNetwork()
HttpRequest = HTTPRequest (#PB_HTTP_Get, "https://mirror.dogecloud.org/Linux/Mint/stable/19.3/linuxmint-19.3-cinnamon-64bit.iso","",#PB_HTTP_HeadersOnly)
If HttpRequest
Debug "Header:" + HTTPInfo (HTTPRequest, #PB_HTTP_Headers)
FinishHTTP (HTTPRequest)
Else
Debug "Request creation failed"
EndIf
With GetHTTPHeaders() you get the headers immediately without downloading the complete file!
Code:
InitNetwork()
Debug GetHTTPHeader("https://mirror.dogecloud.org/Linux/Mint/stable/19.3/linuxmint-19.3-cinnamon-64bit.iso")
Greetz Frank