I'm trying to download this test page http://173.192.48.92/test.php
using JScript under WSH.
I'm using the WinHttp component like this:
WinHTTP = WScript.CreateObject('WinHttp.WinHttpRequest.5.1') ;
WinHTTP.Open( 'GET', 'http://173.192.48.92/test.php' ) ;
WinHTTP.Send() ;
WScript.echo( WinHTTP.responseText ) ;
But I cannot make it work. WinHttp fires a run-time error because the page has Content-Type: text/html; charset=UTF-8
but the actual content of the page is in latin1.
Is there a way I can get the content of a URL using WSH no matter what that content is?
PS: I'm using Windows Vista SP2 and IE9