Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #22691 > unrolled thread

Using Host For HTTP Request

Started bybobspero@gmail.com
First post2013-03-03 06:46 -0800
Last post2013-03-03 13:17 -0800
Articles 3 — 3 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Using Host For HTTP Request bobspero@gmail.com - 2013-03-03 06:46 -0800
    Re: Using Host For HTTP Request Joerg Meier <joergmmeier@arcor.de> - 2013-03-03 15:52 +0100
      Re: Using Host For HTTP Request Roedy Green <see_website@mindprod.com.invalid> - 2013-03-03 13:17 -0800

#22691 — Using Host For HTTP Request

Frombobspero@gmail.com
Date2013-03-03 06:46 -0800
SubjectUsing Host For HTTP Request
Message-ID<db393f02-20a0-4fa2-8e69-0c5030acf3c1@googlegroups.com>
I have a server that has access to two web sites that my users do not because of nat's. If I use response.sendRedirect("http://104.22.234.12"); the users will not be able to view the website but if when I run it on the server it loads. How do I get the web page to open in a container using the server network to load the container?

[toc] | [next] | [standalone]


#22692

FromJoerg Meier <joergmmeier@arcor.de>
Date2013-03-03 15:52 +0100
Message-ID<6pn3r3uhb9gq$.c5j4e6koaqvw.dlg@40tude.net>
In reply to#22691
On Sun, 3 Mar 2013 06:46:16 -0800 (PST), bobspero@gmail.com wrote:

> I have a server that has access to two web sites that my users do not because of nat's. If I use response.sendRedirect("http://104.22.234.12"); the users will not be able to view the website but if when I run it on the server it loads. How do I get the web page to open in a container using the server network to load the container?

You would have to install some sort of proxy server on the server, that
isn't really a Java related issue. But if you do that, why not just change
the NAT settings to let the users access the server directly ?

You could of course write your own proxy software in Java, but it is likely
to be slower, less secure and in general less mature than simply using an
existing solution.

Liebe Gruesse,
		Joerg

-- 
Ich lese meine Emails nicht, replies to Email bleiben also leider
ungelesen.

[toc] | [prev] | [next] | [standalone]


#22696

FromRoedy Green <see_website@mindprod.com.invalid>
Date2013-03-03 13:17 -0800
Message-ID<tdf7j8tj5hc861r0miv12meoiu6jo2n44m@4ax.com>
In reply to#22692
On Sun, 3 Mar 2013 15:52:23 +0100, Joerg Meier <joergmmeier@arcor.de>
wrote, quoted or indirectly quoted someone who said :

>You would have to install some sort of proxy server on the server, that
>isn't really a Java related issue. But if you do that, why not just change
>the NAT settings to let the users access the server directly ?

the other way to do it is to handle the problem at the application
level.  Your server gets the info it needs from the others and
forwards it. The clients have no knowledge of the aux servers.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
One thing I love about having a website, is that when I complain about
something, I only have to do it once. It saves me endless hours of 
grumbling.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web