This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes GET on the client side? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "GET on the client side?" Watch "GET on the client side?" New topic

GET on the client side?

Ryan McClain
Ranch Hand

Joined: Nov 27, 2010
Posts: 97
When one clicks a link to a webpage that is on the local machine, does a GET happen?
Meaning: not on some remote computer with another IP address (not even in the LAN).

e.g. I have a page called home.html and in that page I have <a href="books.html">books</a> which leads to /books.html, residing in the same directory as home.html.
Both home.html and books.html are on the same local machine I am running them from.
I click on the 'books' link. Does a GET happen? Could I troubleshoot this with F12 Developer mode in Chrome/ie10?
So, when is the HTTP protocol applied? When web pages have hyperlinks that are clicked on?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41128
A GET happens if you use the http:// protocol, but NOT if you use the file:// protocol. So you can't open the file from the file system, you need to retrieve it from the web server running on your local machine.

Some HTML dev tools probably still work with HTML files loaded directly from the file system - you can just try and see if that specific one does.

Ping & DNS - my free Android networking tools app
Don't get me started about those stupid light bulbs.
subject: GET on the client side?
Similar Threads
How to share a variable across js files
whats the best book on Servlets
Login Authentication & sendRedirect
Starting to prepare
Not able to see JSP in Tomcat