Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view HTML source without refreshing the page in Chrome

I need to view all source HTML in plain text in one place. I need it from an already loaded page. CTRL+U (View Source) refreshes the page. The page I'm trying to view can only be accessed via proper form submit. What I really want is for CTRL+U to not refresh the page.

I need the HTML source of an already loaded page added to my clipboard.

like image 480
Dor1000 Avatar asked Dec 15 '15 05:12

Dor1000


1 Answers

I think none of the other answers really answer your question.

You want the exact response from the server, not the current DOM, and you want it with the exact request headers that was sent the first time.

To do so, open the Chrome Dev Tools and select the "Network" tab.

Network tab in Google Dev Tools

The very first request should be the page you requested. Click it and select the tab "Response" on the right side to get the exact response the server gave you.

Response tab in Network tab

like image 82
Tim Avatar answered Oct 11 '22 13:10

Tim