Is there an alternative to ASIWebPageRequest in the ASIHTTPRequest library that I can use to load an entire web page in iOS, including CSS, JavaScript and image files, etc.? I cannot find a similar class in the AFNetworking structure, and so far my searches have not been successful. I canβt use ASIHTTPRequest, since I canβt get it to work in any of my applications at all, no examples I found for iOS7, I would rather use something more recent.
Basically, I want to store the entire web page locally in a directory on the iPhone / iPad, so that later the user can edit it locally and later send the entire directory to their web server. The user should also be able to view the web page at any time in UIWebView.
If this is not possible, I just need to download the HTML file and then parse it to find the URLs of external resources and then download them separately. I would rather not do this, but if I need to, what is the best library for this?
Thanks to everyone who helps me!
David Omid
source share