-
java.net.Proxy Vs. System.setProperty(http.proxyHost)
I've been trying to fetch some content from a Url. My machine is behind a proxy server. The first method I tried was using the System.setProperty calls to set the details of the proxy server. This worked well.
The second method was to set the values in the java.net.Proxy object and use it while calling url.openConnection. This method turned out to be about 3 seconds slower.
Does anyone have an explanation for the discrepancy in performance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks