wrote on 29 dec 2008 in microsoft.public.scripting.vbscript
:
> On 28 Dic, 20:45, "Evertjan." <exjxw.hannivo...@xxxxxx> wrote:
>> *wrote on 28 dec 2008 in microsoft.public.scripting.vbscript:
>>
>> > On 28 Dic, 17:20, "Evertjan." <exjxw.hannivo...@xxxxxx> wrote:
>> >> *wrote on 28 dec 2008 in microsoft.public.scripting.vbscript: >>
>> >> Show us the header please.
>> > ok, those are the first lines: >>
>> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>> > <html xmlns="http://www.w3.org/1999/xhtml">
>> > <head>
>> > <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > /> >>
>> No, that is the top and <head> section of the html,
>> please show the header content of the html sent to the client
>> as returned by xmlhttp.open("HEAD"...:
>>
>> var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
>> function getUrlhead(url) {
>> * * * * xmlhttp.open("HEAD", url,false);
>> * * * * xmlhttp.send()
>> * * * * sta = xmlhttp.status
>> * * * * return xmlhttp.getAllResponseHeaders();
>>
>> }; >
> Uhm.. that's not vbscript and i don't know how to transpose it.. sigh!
That is clientside javascript to read the header of a sent html.
It is not part of your page, so why do you nead to transpose it to vbs?
Any html sent to the browser has a header section "head" and a html
section "get".
ASP directives in the server asp file direct the server to change the
"head" section.
A typical head section as found by the above code looks like this:
Date: Mon, 29 Dec 2008 17:06:27 GMT
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
Content-Length: 40271
Content-Type: text/html
Expires: Mon, 29 Dec 2008 16:56:27 GMT
Set-Cookie: ASPSESSIONIDQSBSBBSR=PHBICBCAAIPEKGIMLKEDAGNL; path=/
Cache-control: private
or even [Apache server]
Date: Mon, 29 Dec 2008 10:31:59 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Connection: close
Content-Type: text/html; charset=UTF-8
typical asp directive that change or ads to such head:
<%
Response.Expires = -10
Response.ContentType = "video/x-ms-asf"
%>
>> so show the html as seen by view-source or the source function of your
>> browser. >
> Maybe is that the answer? If i put the hmtl by view-source of the
> browser in the validator it can validate it, is this the way i have to
> validate a page? If your definition of validation is to validate the html sent to the
client browser, yes.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)