Retrieve and save a webpage
How to retrieve the code of an external webpage and save it to a local file?
right click anywhere on the page Save Page As... or find an option in the browser that allows you to view the page source.
@seamiki, I mean programmatically of course.
Never assume when you post question as the reader will not for sure. have a look at my codes, there is a java program doing just that. It obviously doesn't work in yhe Code Playground but you can copy it, compile it and run it without problems