ios - download web page source code on iphone -



ios - download web page source code on iphone -

i need download particular webpage on iphone. redirects me if utilize desktop. tools out there help me this? have tried sitesucker didnt work.

thanks!

if redirects when utilize desktop access it, can right click link , download page source. since want on iphone, can following:

// download webpage nsurl *url = [nsurl urlwithstring:@"https://yoururl.here"]; nsdata *urldata = [nsdata datawithcontentsofurl:url]; [urldata writetofile:filepath atomically:yes];

and can access info through simulator folder or straight nsstring.

nsurl *url = [nsurl urlwithstring:@"https://yoururl.here"]; nsstring *source = [nsstring stringwithcontentsofurl:url encoding:nsutf8stringencoding error:null]

ios mobile-safari

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -