Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Https post, through Proxy settings

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hello all,

I hope I picked the right forum for this.
I am trying to open a good old url connection to a https URL. I have to do it through a proxy however.
Environment is java 1.6 and Weblogic 10.3.4.

There are may ways to try this but I need some clarifications.
There is a java option (http.proxyHost and its friends). Does this apply to attempts to connect to https URLS as well or do I have to set the https.proxy options also? The https.proxy setting will simply override the http.proxy setting when connecting through https?


I can also do this through java code without using the java system properties. Which of the following would be correct?



Or maybe it makes no difference with which of the above 3 cases I open the connection? Please note that I must request with POST method and access output and input stream as well.
Also is it safe to assume that such code (opening connection with Proxy object parameter) overrides the system properties?

Many questions for sure. Please take a shot at whichever you could help!
 
Bartender
Posts: 1558
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Greg Triant wrote:I hope I picked the right forum for this.


Well, no. There is a dedicated forum for servlets where you would get better and quicker help

Greg Triant wrote:


The best place to look for such question is : official API documentation.

I hope this helps.
 
Greg Triant
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Regarding the proxy type setting, I was referring to the lack of HTTPS setting.
I will repost to servlets and try to delete this
 
Sheriff
Posts: 22854
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Next time wait for a bartender or sheriff to move your thread. Now I'll have to close this one.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic