How to view the source of a non html page?

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.

2

2 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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like