Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can an application server call itself with http://localhost ?

843790Sep 19 2010 — edited Sep 19 2010
I just want to know whether or not http://localhost is supposed to loopback to the web server where the application server is installed. At my last job I was used to dealing with proxy mappings for all the servers in production. At my new job(I'm investigating an issue) I started seeing http://localhost being used in their production servers. Would localhost work from a server in a production environment. Would the request loop back to the server itself?

Here's the sample code -

URL url = new URL("http://localhost:7777/reports/rwservlet?csc&report=/app/oracle/files/TCP01/reports/vp_owner/letter.rdf&P_USER=null&p_emp_id=12345");
URLConnection conn = url.openConnection();
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 17 2010
Added on Sep 19 2010
1 comment
342 views