2
Is there a way to somehow dump the source of a webpage automatically, without interacting with a browser itself; without right clicking on page and selecting “view source”. So For example, I have an Internet Explorer opened and displaying certain content. I want to get the HTML source of that page in a file that I could read. Maybe there is an option to keep current page source somewhere on disk?
Few points:
- The webpage I am running is a local web service that is open in kiosk mode (no menu or address field).
- Since this service requires authentication, I can't just open and access the page directly. There is a certain procedure that I undertake to get to this page.
- I want to get the source of the current actual page as I constantly make changes on it and(filling in values, choosing combobox values, etc..). I want these changes to be reflected in the source, if I run the same page in new window, I won't have my edited fields in it.
Solutions like Selenium won’t help me because I don’t want to run the browser through it in the first place.
Thanks you for your answer. Command line is perfect, however I'm not sure I will be able to implement your solution. 1. The webpage I am running is a local web service that is open in kiosk mode (no menu or address field) so there is no clear url I can copy. 2. Since this service requires authentication, I can't just open and access the page directly, even if I had the url. 3. I want to get the source of the current actual page as I make changes on it and I want these changes to be reflected in the source, if I run the same page in new window, I won't have my edited fields – Eugene S – 2015-03-06T06:01:07.947
1@EugeneS Well, as far as point
2.
goes,curl
allows for authentication from the command line, so that shouldn’t be an impediment. But it does seem like you have other idiosyncrasies that might stand in the way of simply accessing the content. I would recommend you add those details to your question so there is no confusion as to what you are attempting to do and what tools you might need. Good luck! – JakeGould – 2015-03-06T06:04:37.107