On Windows Phone, can I view the source of a URL, if the URL itself is known?
and thanks for looking.
Imagine your standard barebones Windows Phone app. Say, I开发者_开发问答 have a URL in mind. I want to be able to view the HTML source for that URL, because I'm looking for particular info that is on that page. Is there any way to do this?
Peace.
You can pull down the html for any page using HttpWebRequest. This project demonstrates that among other things.
WebClient, HttpWebRequest and the UI Thread on Windows Phone 7
If scraping data from webpages, be sure to verify the rights granted by the site's owner for that purpose.
精彩评论