Has anyone used AddHTTPHeader? I think that
may be the answer. I cannot determine where the AddHTTPHeader and RemoveHTTPHeader would go in the code.
It appears that anything I put in the fields has no effect on the results. Also, it seems that there is a myriad of possibilities for what you can put in the headerName and headerValue.
AddHTTPHeader( iHTTP, headerName, headerValue )
http = CreateHTTPConnection()
SetHTTPHost( http, httpHost$, 1 )
AddHTTPHeader( http, "X-Forwarded-Proto", "https" )
// AddHTTPHeader( http, "Upgrade-Insecure-Requests", "1" )
// AddHTTPHeader( http, "X-Requested-With", "XMLHttpReques" )
SendHTTPRequestASync( http, httpFile$ )
while GetHTTPResponseReady(http) = 0
Print( " Weather Feed Connecting..." )
if GetErrorOccurred() then end
// setTextString( 1, t$ ) // display time
Sync()
endwhile
response$ = GetHTTPResponse(http)
CloseHTTPConnection(http)
RemoveHTTPHeader( http, "X-Forwarded-Proto" )
DeleteHTTPConnection(http)