Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem With Proxy Server Access

 
Jojo Paderes
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking for a good reference source or some advice on how to configure stand-alone Java applications for Proxy Server access to a https site. Currently I'm having some difficulties setting up the Java https system properties for proxy server authentication (username and password). Here's a sample Java command line I'm using to set the system properties for proxy server access:
java -DproxySet=true -Dhttps.proxyHost=192.168.0.1 -Dhttps.proxyPort=3128 HelloProxyServer
Any recommendations or tips? Thanks in advance!
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not sure if i understood your question well . What i can tell you is that it is possible to make your java application to work as a proxy server . Is that what you want to know ?
 
Jojo Paderes
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying Mr. Raghav Mathur
Currently I'm configuring our Java client application to enable it to connect to a https web server via a proxy server. So far I was able to configure the client application by using this command line when running the said application:
c:\java -DproxySet=true -Dhttps.proxyHost=192.168.0.1 -Dhttps.proxyPort=3128 MySSLClientApp
The client app works fine when it connects to the web server assuming that the proxy server's security configurations are default (I'm using WinRoute in Windows 2000). However, other users cannot connect to the web server on certain proxy servers types and settings (for example applying security policies on internet users). The following are the errors users have encountered so far:
1. java.io.IOException: Unable to tunnel through 165.28.97.89:80. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"
2. java.net.ConnectException: Operation timed out: connect
Is there something that I have to implement in our client app so that it can pass thru on some proxy server to connect to the iConnect web server, or the adjustment should be done at the proxy server end.
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic