Не уверен, что это будет полезно или нет. Я использовал строковые функции для вашего запроса:
cpp
#include <StringConstants.au3>
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET", "https://google.com", False)
$oHTTP.Send()
$HeaderResponses = $oHTTP.GetAllResponseHeaders() ; cookie
;$resp = $oHTTP.ResponseText ; html
$datepostionstart = StringInStr($HeaderResponses,"Date:")
$datepostionstend = StringInStr($HeaderResponses,"GMT")
$firstsring = StringLeft($HeaderResponses,$datepostionstend-10)
MsgBox(1,"",$firstsring)
$date = StringTrimLeft($firstsring,$datepostionstart+10)
MsgBox(1,"",$date)
FileWriteLine("test.txt", "Cookie Date = "&$date)