Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


mobile browser in desktop browser

From: "AllisonJ" <webmaster@-------------.--->
To: NULL
Date: 5/19/2008 5:00:00 PM

Hi and tks a lot for your time!

I put a nice fake mobile phone screen on my site and a textbox where 
visitors can enter an URL to see how it looks when browsing through a real 
mobile phone.

I'm trying this:


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.Send
If err.number = 0 then xmlres = xml.responseText


But this code doesn't work the way I thought, 'cause the destination server 
seems to be ignoring the "user-agent" header instruction, using the desktop 
browser (IE, FF) string instead

HOW CAN i get this to WORK?

Any help will be greatly appreciatted!

Ariel 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent