This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to figure out what kind of page I am ckecking ?

 
shahzama pathan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I visit a website, how to figure out whether its an html, jsp or asp ?

I looked at the view source, but was unable to figure that out. Is there anywhere in the source code does it say what kind of page is it ?

thanks
 
Steve Luke
Bartender
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These technologies all reside on the server side, and all put out HTML code. It is this HTML code that gets sent to the browser. So no, as a client you can not tell what the server side is using reliably.
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The extension may give you a hint (e.g. php, php3, php4 is PHP, asp is ASP, aspx is ASP.NET, jsp and jspx are JSP, htm and html is HTML), but that's not foolproof:
  • If your URL points to a "folder" and a default document is used, there is no extension
  • In servlet containers like Tomcat, mapping rules can map a URL ending in .html to a JSP file or servlet
  • Other forms of URL rewriting can do the same
  •  
    Consider Paul's rocket mass heater.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic