File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes Problem With Proxy Server Access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Problem With Proxy Server Access" Watch "Problem With Proxy Server Access" New topic

Problem With Proxy Server Access

Jojo Paderes

Joined: Sep 29, 2002
Posts: 3
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= -Dhttps.proxyPort=3128 HelloProxyServer
Any recommendations or tips? Thanks in advance!

JOJO PADERES<p>visit:<br />Pinoy Java Users Group -<a href="" target="_blank" rel="nofollow"></a><br />IIEE-MIT Chapter - <a href="" target="_blank" rel="nofollow"></a>
Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 641
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

Joined: Sep 29, 2002
Posts: 3
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= -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. Unable to tunnel through Proxy returns "HTTP/1.0 407 Proxy Authentication Required"
2. 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.
I agree. Here's the link:
subject: Problem With Proxy Server Access
It's not a secret anymore!