Get source from URL

I have an iframe with src url. Using the url I would like to save the mark up(Whole document). Is there a way to do it?


<iframe src="url"></iframe>

From the rendered iframe on my end. I want to extract the source document, like we right click the page and view page source.