Archive for September, 2007

Using wget to simulate a WAP browser

I needed to do some testing of a wap specific website, but it would error or redirect me if I hit it with a web browser… wget to the rescue

wget -O - -U “MOT-8720_/00.62 UP.Browser/6.2.3.4.c.1.104 (GUI) MMP/2.0″ –header=”Accept: text/vnd.wap.xhtml” http://www.yourwebsite.com/wap/

I pulled a browser string from my web logs, attached the accept text/vnd.wap.xhtml since I knew it needed that for the site and bingo

Comments