开发者

Download iphone web pages using delphi

开发者 https://www.devze.com 2023-02-25 10:36 出处:网络
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

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 .

Download iphone web pages using delphi

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';
0

精彩评论

暂无评论...
验证码 换一张
取 消