#include $home="C:\home.html" $useragent = "Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0" $HttpOpen = _WinHttpOpen($useragent) ;$HttpConnect = _WinHttpConnect($HttpOpen, "www.gmx.de") $HttpConnect = _WinHttpConnect($HttpOpen, "www.gmx.de", $INTERNET_DEFAULT_HTTPS_PORT) ;$HttpOpenRequest = _WinHttpOpenRequest($HttpConnect, "GET", "/", Default, Default, Default) $HttpOpenRequest = _WinHttpOpenRequest($HttpConnect, "GET", "/", Default, Default , Default, $WINHTTP_FLAG_SECURE) _WinHttpAddRequestHeaders($HttpOpenRequest, "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8") _WinHttpAddRequestHeaders($HttpOpenRequest, "Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3") _WinHttpAddRequestHeaders($HttpOpenRequest, "Connection: keep-alive") _WinHttpSendRequest($HttpOpenRequest) _WinHttpReceiveResponse($HttpOpenRequest) $sheader = _WinHttpQueryHeaders($HttpOpenRequest) $sdata = _WinHttpReadData($HttpOpenRequest,0,500000) MsgBox(0,"Header",$sheader) $fh = FileOpen($home,2) FileWrite($fh,$sdata) FileClose($fh) _WinHttpCloseHandle($HttpOpenRequest) _WinHttpCloseHandle($HttpConnect) _WinHttpCloseHandle($HttpOpen)