Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-05-2008, 12:20 PM
Member
 
Join Date: Sep 2008
Posts: 1
manolowar is on a distinguished road
HTTP requests through proxy server
Hi to all. First of all, sorry for my English.

There is some strange behavior in my program related to HTTP requests through a proxy server. For testing purposes, I installed a proxy server (CCProxy) on localhost, and I want my program to access the Internet through it, so I set the system properties http.proxyPort and http.proxyHost.

If the proxy server is running everything is ok, as I can see in the log of the server that all the requests made by the program passes through the proxy, both GET and POST requests.

The problem appears when the proxy server is not running. POST requests fails (as expected) and appropiate exceptions are thrown, but GET requests don't fail, as I get the correct result from them.

Does anyone know why?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-07-2008, 06:02 AM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 475
fishtoprecords is on a distinguished road
Are you sure that the browser is not caching results?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 09-09-2008, 01:30 PM
Member
 
Join Date: Sep 2008
Posts: 1
gateway1124 is on a distinguished road
manolawar may I see your codes to examine...

I can not imagine the error you enconunter.

thank you
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
reading URL using java through proxy server asheesh Networking 15 08-24-2008 05:45 PM
Does any file in an FTP server ends up in an HTTP server? islamfunny CLDC and MIDP 4 08-15-2008 06:30 PM
proxy server with caching........? 05bit044 Networking 1 08-03-2008 10:10 PM
Jakarta FTP via proxy server megalon Networking 0 07-24-2008 12:12 PM
Redirect My Client httpRequests to Proxy server ! Tareq85 Networking 0 06-12-2008 10:30 AM


All times are GMT +3. The time now is 02:59 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org