Download iphone web pages using delphi
I need download some html content (pages) made for iphone (or mobile devices) using de开发者_C百科lphi from a desktop application. for example i wanna download the twitter page for iphone which look like this .

but I don't know how retrieve such pages (mobile editions), currently i using the TIdHttp component.
Do you need set the user agent string of your component to retrieve such pages. for the TIdHttp component you must set the Request.UserAgent property to a valid iPhone user agent string.
see this sample
IdHTTP.Request.UserAgent:='Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16';
加载中,请稍侯......
精彩评论