arielferro
05-19-2008, 12:41 PM
Hi! Txs for reading!
Well I'm trying to show the look & feel of a given url just how it will look in a mobile phone browser.
I tried something like:
Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
xml.Open "GET", "http://www.google.com", False
xml.setRequestHeader "User-Agent", "SonyEricssonK608i/R2L/SN356841000828910 Browser/SEMC-Browser/4.2 Profile/MIDP-2.0 Configuration/CLDC-1.1"
xml.setRequestHeader "Content-Type", "text/html; charset=utf-8"
xml.Send
If err.number = 0 then xmlres = xml.responseText
set xml = nothing
But this doesn't work, 'cause the received html obbeys the browser user-agent string.
How can I do this?
Thanks in adv
Ariel
Well I'm trying to show the look & feel of a given url just how it will look in a mobile phone browser.
I tried something like:
Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
xml.Open "GET", "http://www.google.com", False
xml.setRequestHeader "User-Agent", "SonyEricssonK608i/R2L/SN356841000828910 Browser/SEMC-Browser/4.2 Profile/MIDP-2.0 Configuration/CLDC-1.1"
xml.setRequestHeader "Content-Type", "text/html; charset=utf-8"
xml.Send
If err.number = 0 then xmlres = xml.responseText
set xml = nothing
But this doesn't work, 'cause the received html obbeys the browser user-agent string.
How can I do this?
Thanks in adv
Ariel