Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2003

Tip: Looking for answers? Try searching our database.

Thread local socks proxy library for java?

Thread view: 
Chorg - 13 Dec 2003 23:00 GMT
Hello all,
    I am doing some work with socks proxies, and i am looking for a
library that would allow me to set my proxies on a per thread basis.

I am using java 1.4 for this, and i am aware that i can set the system
property to do this:

System.setProperty( "proxySet", "true" );
System.setProperty( "http.proxyHost", "xxx" );
System.setProperty( "http.proxyPort", "xxx" );

However, from my understanding, this would set a value for the entire
JVM.   what i want is to set the proxy local to a thread. Can anyone
suggest some good libraries available to do this?

thx
chorg
A Baba - 13 Dec 2003 23:05 GMT
Rather than using the HTTP classes in JDK, try the Net package in Apache
Commons (http://jakarta.apache.org/commons/net/).  This is a much better
libarary for HTTP access and supports Proxy server.

Signature

====================================================
You don't pay to get spam, why pay to clean it
Visit http://www.spammarshall.com for details
====================================================

> Hello all,
>     I am doing some work with socks proxies, and i am looking for a
[quoted text clipped - 13 lines]
> thx
> chorg


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.