Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-05-2008, 10:20 AM
Member
 
Join Date: Sep 2008
Posts: 1
Rep Power: 0
manolowar is on a distinguished road
Default 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
  #2 (permalink)  
Old 09-07-2008, 04:02 AM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 571
Rep Power: 2
fishtoprecords is on a distinguished road
Default
Are you sure that the browser is not caching results?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 09-09-2008, 11:30 AM
Member
 
Join Date: Sep 2008
Posts: 1
Rep Power: 0
gateway1124 is on a distinguished road
Default
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
  #4 (permalink)  
Old 01-20-2009, 04:52 AM
Member
 
Join Date: Jan 2009
Posts: 13
Rep Power: 0
guneet singh is on a distinguished road
Default
u just send ur code...i m also working on same kind of code..may be i can help u..!
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

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

BB 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
Redirect My Client httpRequests to Proxy server ! Tareq85 Networking 7 04-14-2009 12:23 AM
reading URL using java through proxy server asheesh Networking 15 08-24-2008 03:45 PM
Does any file in an FTP server ends up in an HTTP server? islamfunny CLDC and MIDP 4 08-15-2008 04:30 PM
proxy server with caching........? 05bit044 Networking 1 08-03-2008 08:10 PM
Jakarta FTP via proxy server megalon Networking 0 07-24-2008 10:12 AM


All times are GMT +2. The time now is 01:31 AM.



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