Can a server do internal HTTP-Requests

httprequest

say I have a JSP-script on a server that's called from the browser. This script internally calls another source to get some data.

This internal source is a script that's on the same machine. I

s it possible to do a simple HTTP-GET-Request to that script or does the HTTP-request "leave" the current machine and "returning" to it again (so that it's possible to see/manipulate that request from outside) or is the request handled totally within the current server?

Best Answer

If the request is initiated from the same machine to the same machine, it will not leave it and will be handled locally. In other words, it's not possible to snoop it from the outside.