I need to view the source of a webpage. This web page is a plain text page with some text regarding an error. But the page's content type is set to image/jpeg. If I visit the page in Internet Explorer or Firefox, the view source option is greyed out. How can I view the source of pages with content types not set to text/html?
Edit:This page is not actually an image, it is a plain text page with the content type of an image.
22 Answers
You can't. On the serverside, (probably using php or asp), the image is generated and outputted.
As a result, you directly get an image, and an image does not have a textual source. For that raeson, you can't select any text either.
Using Chrome you can type (in the address bar)
view-source:And it will show you the source.