In SOLO mode, the client fetches using any browser proxy settings.
In server proxied mode, the web server would need to be told to fetch via a proxy
server. I am not sure if there is anything in the configuration to support this, anyone know? It would need to be some config or flag on the call to the HTTPClient library HostConfiguration.setProxy. A quick grep through the server sources doesn't show any such reference, so I don't think the server supports this. I bet it would be pretty simple to
add it as an entry in the lps.properties file, probably a three line change in
WEB-INF/lps/server/src/org/openlaszlo/data/HTTPDataSource.java, where it
creates hcfg, the HostConfiguration object, you could do something like
String proxyhost = LPS.getProperty("http.proxy", null);
String proxyport = LPS.getProperty("http.proxyport", null);
if (proxyhost != null && proxyport != null) {
hcfg.setProxy(proxyhost, proxyport);
}
then add those entries to the lps.properties file
On 12/6/05, James Howe <[EMAIL PROTECTED]> wrote:
I'm working on a Laszlo application which makes use of datasets retrieved
via HTTP. Recently our company locked down its network such that we are
required to go through a proxy server to go to any HTTP site. How does a
Laszlo application deal with proxy servers? In my application I have a
dataset with an HTTP address to an external (outside our corporate
intranet) site. When it tries to connect, the connection times out. I'm
assuming this is because the application is trying to go directly to the
address instead of through the proxy server. How do I deal with this
problem?
Thanks!
--
James Howe
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]
_______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
