HtpsURLConnection and Proxy Servers

I am trying to get the HttpsURLConnection object to leverage the HttpUrlConection Proxy Server capabilities however it appears as though it is ignoreing the setting of the system properties:
// Setup the system properties for use of proxies.
Properties prop = System.getProperties();
prop.put( "http.proxyHost", m_proxyServerAddress);
prop.put( "http.proxyPort", m_proxyServerPort);
If I turn on the SSL debug via
System.setProperty( "javax.net.debug", "all" );
I see the intial KeyStore unpacking and the seeding of the random key but it essentially times out with a 10060 error. It is behaving as though the HttpsUrlConnection is not reacting to the http.proxyHost and httpProxyPort settings. I was at least expecting the connection to continue with the SSL hello negotiations or at a minimum get a 407 Proxy Authentication.
In my research I see that there exists a socksProxyHost
property that I can set and I am wondering if this is what I should be using in an SSL - HTTPS context.
Thanks in advance for any help,
Ken Crismon
[email protected]
RioLabs

I remember reading somewhere in the examples that come with Java Secure Socket Extension that the properties to set for HTTPS URLs to work through proxies, the properties to set are https.proxyHost and https.proxyPort i.e. https instead of http

Similar Messages

  • OS X Tiger and proxy servers

    At the office I use my MacBook Pro connected to an exchange server. To do so I've had to use Microsoft Entourage and Firefox. I cannot get any of the Mac software (iTunes, Safari, Mail, etc.) to work with the server.
    I've read previous discussions in this forum on the subject but none have helped.
    How can it be that Firefox can have the simple "auto-detect proxy settings for this network" that works and the 'ahead of the curve,ease of use leader,' Apple does not?
    Can anyone help me to get OSX Tiger working for me at work?

    I'm not sure what you mean by vague but allow me to be more specific.
    To make Entourage work I had to configure it to use an Exchange Server, an option built in to the application. I find no such option in Apple Mail.
    To make Firefox access the internet I just had to choose "auto-detect proxy servers." Now it will work at the office (through the Exchange server) and at home where I'm connected directly (on a cable modem). Safari has no such option.
    I understand that Apple uses System Preferences rather than each application having its own settings. I ahven't been able to get any Apple apps to connect to the internet when I'm at work. I have set up a "Location" for when I'm at work. My MBP can access the company printers, though not from every application - - Preview always works.
    I see that there is a place for a PAC file url or to configure a proxy server manually. I don't have this information. The company in all PC and isn't all that concerned with helping me configure my Mac.
    If there's any other way someone can recommend I'd appreciate it.
    On another note, I question why Apple's set up isn't easier. Entourage and Firefox were very simple, in the case of Firefox it was automatic.

  • Connecting to Wireless Network with domain name and proxy servers?

    Hi,
    I'm trying to connect to the wireless network at my college, however it's not as straight forward as usual... The network is hidden, although I know to 'Join other network' and type in the SSID of the network and then set the authentication method to WPA-Enterprise. However, this is where I run into a problem..
    To connect, I need to 'configure encryption as AES', which I'm not sure how to do on OS X. Furthermore, after signing in with my college ID I am required to 'Use the domain name [domain name]' and 'configure your browser to use the college proxy servers [example.example.net] on port [123]
    Any help on this would be greatly appreciated as it's important that I log on to the network for work etc.
    Thanks very much for your time.

    johnthompson1993 wrote:
    Hi,
    To connect, I need to 'configure encryption as AES', which I'm not sure how to do on OS X. Furthermore, after signing in with my college ID I am required to 'Use the domain name [domain name]' and 'configure your browser to use the college proxy servers [example.example.net] on port [123]
    The encryption should be configured automatically. To use the proxy:
    1. Open System Preferences
    2. Click on Network
    3. Select Airport from the list on the left
    4. Click on Advanced, near the bottom right
    5. One of the tabs will be called Proxy. Configure your settings there.

  • Mac Book Pro 13 inch Problem with Internet hardware and proxy servers.

    Hi im from Nicaragua,Managua and my MacBook Pro 13 inch is telling me that I dont have Hardware install for the internet so i cant connect to the Internet, However some time I can connect like weird times but like in a hour the proxy servers that im in dissconnect them self and I cant play with other computer in a lan or all around the world servers.
    Please Help me And however I dont know my garantee but here is my serial number: C1******TY3
    Thanks If you help me.
    <Personal Information Edited by Host>

    I think your computer needs to be repaired. Take it to an authorized service facility in your country.

  • Safari, Windows Media Player, and Proxy Servers

    I'm trying to watch streaming video of comedy central's Daily Show but its not working. I hit play and I get "-19422" in the play bar. I can't find anything about this anywhere online. I used to be able to do play these videos on my old computer but have had no success. It has to be in Windows Media Player format. I have Windows Media Player and have streamed from other sites. The only thing I have found is that the comedy central page requires a proxy to view streamng video. I have contacted my ISP and they say no such proxy is needed and I should be able to view the page. Am I suppose to guess on the proxy server? The comedy central site says it supports safari and apple computers but it doesn't seem like it. Does anyone else have this problem? Does anyone have any ieas for solving this problem?
    PS- This is what comedy central says.... Also my ISP is Time Warner Cable's RoadRunner
    "If you are on a Mac, make sure your Player is set to only use the proxy, and disable TCP or UDP checking as this will cause timeouts.
    If you choose the Use proxy option and do not know the proxy server name or port number you should use, contact your Internet service provider or network administrator. "
    12" PB 1.5Ghz   Mac OS X (10.4.3)   768 RAM

    Hi,
    The videos work fine for me with Safari 2.0.2 and OS X 10.4.3. The section of the help file you quoted appears to be referring to a corporate firewall setup rather than a typical home setup - you shouldn't need to change any of the defaults for Windows Media Player.
    A Google search for that error code you received mentions Flip4Mac in a couple of places - do you have that installed?
    If so, try disabling it to see if that is the cause of your issues.

  • ITunes 7 and proxy servers...

    I havent been able to use the music store for ages because of proxy server problems and then yesterday i updated to iTunes 7 and managed to connect, browse and even buy a couple of songs...
    Today I can only get a message which says You must log in to the proxy server to access the store.
    Doesn't even offer me a chance to log in multiple times like iTunes 6 used to...
    Anyone else had any success?

    It wont let me access the store but is downloading a podcast i signed up to before... How curious...

  • Trouble with CFLOCATION and Proxy Servers

    Hi,
    Trying to troubleshoot an annoying issue and wondering if
    anyone has had any experience with this - haven't had much luck
    Googling for info. Using up-to-date CF 6.1 and current version of
    Apache 2.0. Client is accessing our CF webapps via a clustered
    proxy server/firewall archicture. Each time client users HTTP POST
    through one of our applications, the page they are redirected to
    only displays a small portion of unprocessed raw source page
    content, the remaining page content never seems to make it to the
    client's browser. The only way they can a valid version of the page
    is to refresh the browser. I verified that small portion of raw
    source content is returned by the application during these
    redirects using an HTTP sniffer, however my office PC still
    redirects to the correct page. We are using <CFLOCATION> tags
    to move users between pages after submitting.
    I suspect this problem has to do with their proxy server(s)
    holding HTTP 302 responses to the literal standard, which
    (paraphrasing) basically states that while the URI has been moved,
    it is up to the client to continue the actual redirect. I believe
    HTTP 303 responses would be the "correct" implementation. Having
    said that, we've never run into this issue with any other client
    users before.
    Has anyone ever run into similar issues before? Any help is
    greatly appreciated.
    Thanks,
    DTS

    Replace
    byte[] buf = null;with
    byte[] buf = new byte[ 256 ];Other problems may happen if this sample was not tested properly.
    The problem is that the DatagramPacket requires you to supply a non-null buffer, as per:
    DatagramPacket
    public DatagramPacket(byte[] buf, int length)
    Constructs a DatagramPacket for receiving packets of length length.
    The length argument must be less than or equal to buf.length.
    Parameters:
    buf - buffer for holding the incoming datagram.
    length - the number of bytes to read.
    Edited by: baftos on Jul 18, 2008 3:38 PM

  • Joining a work network using wireless and proxy servers

    Hi,
    I have just arrived at a new work location, where we have an afterhours user network that we can connect to in our accommodation. I have had continual trouble trying to connect to the network, and have taken my MacBook to the geeks who provide the network. They can't fix the problem either (and are reluctant to as they don't like Mac's).
    The problem is exactly as follows:
    My airport instantly identifies the network. I need a password to connect to the network name, and this seems to work, but when I run the diagnostics it shows that the airport, airport settings and network settings are all green; but ISP, internet and server are red and failed.
    Next I click on advanced, and the geeks informed me that I need to set up a Web Proxy (HTTP), Secure Web Proxy (HTTPS), FTP Proxy and SOCKS Proxy. They have all been done correctly with the same login and password (which was provided by the geeks). Now they have watched me do this and tried themselves, and they tell me it is correct and has worked previously on other peoples Mac's this exact way.
    But for some reason after applying all this and even restarting the computer just incase, the ISP and onwards still fail to connect.

    The good news is that the basic roaming network setup is the same with the newer 6.x version of the AirPort Utility.
    Here are some step-by-step instructions using the 6.x version of the AirPort Utility.
    First, there are a few key elements to successfully configuring a roaming network, and they are:
    All of the base station must be interconnected by Ethernet. Note: You can use non-Apple routers in this type of network.
    All base stations must have unique Base Station Names.
    All base stations must use the same Radio Mode and Wireless Security Type/Password.
    Each base station should be on a different Radio Channel. Using "Automatic" works well here.
    All base stations, other than the "main" base station, must be reconfigured as a bridge.
    Let's start with the "main" base station. This will be the one directly connected to the Internet modem:
    AirPort Utility > Select the "main" base station > Edit
    Base Station tab > Base Station Name > Enter a unique name here
    Internet tab > Connect Using: DHCP
    Wireless tab > Network Mode: Create a wireless network > Wireless Network Name > Enter the desired name. This will be used on all base stations > Wireless Security: WPA2 Personal (recommended) > Wireless Password > Enter the desired wireless password. This will be used on all base stations.
    Network tab > Router Mode: DHCP and NAT
    Click on Update
    For each additional base station added to the roaming network:
    AirPort Utility > Select the appropriate base station > Edit
    Base Station tab > Base Station Name > Enter a unique name here
    Internet tab > Connect Using: DHCP
    Wireless tab > Network Mode: Create a wireless network > Wireless Network Name > Enter the desired name. This will be used on all base stations > Wireless Security: WPA2 Personal (recommended) > Wireless Password > Enter the desired wireless password. This will be used on all base stations.
    Network tab > Router Mode: Off (Bridge Mode)
    Click on Update

  • Apple Software Update for Windows and Proxy servers

    I try to run Apple Software Update that just got installed in Windows, but it is unable to locate the server and immediately quits. I know I have to go through a proxy server here in work, but I never get the opportunity to enter the proxy information and cannot get to the menus in the Apple Software Updater for Windows to see if I even have the option to enter Proxy information. How am I supposed to get this to work?

    Hmmmmm.
    Try checking the rules in your firewall software. Is Apple Software Update being allowed full access to the internet?

  • Airport and proxy servers

    Hi,
    I am in a school district where we have desktop and laptop computers. The desktops are hard wired and we use an airport extreme for the laptops. We just bought a new online testing software that requires a direct connection (not through a proxy server) to port 443. My desktops can connect to the program just fine but the laptops won't, so I know it's not the main firewall or something else blocking the connection. Does anyone know what I need to change in my settings to make it so that the airport doesn't proxy the connection to the internet? Is that possible?
    Thanks.

    My questions is, if i need to connect to another network, with the airport that doesn`t use proxy, is necesary delete the proxy settings?
    If the other network that you will connect to does not use a proxy server then, yes, you will have to delete the proxy setting in your AirPort configuration. However, if you will be switching between these networks it would probably be more convenient to create a Network Location profile for each network, and then, switch between them before connecting. (ref: System Preferences > Network > Location > Edit Locations)

  • Proxy servers and the "cannot publish" error - v.1.1.2

    Using the latest iWeb (1.1.2), attempts to publish my work to my .Mac account resulted in the infamous "publish error." I then came across this KB article:
    http://docs.info.apple.com/article.html?artnum=303927
    I turned off my proxy access in the Network settings, and voila, publishing was successful. But now, I'm circumventing my much-needed proxy.
    It's been suggested in other threads here that proxies aren't a problem if one's iDisk is accessible through it. This is not the case. With the proxy, iDisk access is fine, it's only iWeb publishing that is a problem.
    Any way to keep my proxy and still publish with .Mac?

    iDisk access and iWeb publishing ARE indeed different activities. They are similar in that they both utilize the WebDAV protocol over Port 80, but they are different in their individual requirements for back and forth communications with the .Mac servers in terms of how soon or in what timeframe they expect to hear confirmation of transfer back from the server.
    It is apparent to me that the network timeout threshold for copying something to iDisk is a lot longer than that for publishing through iWeb. In fact, I would say that iWeb has become a lot more stringent with network timeouts ever since it was updated from 1.0 to 1.1.
    Anything in between your computer and the .Mac servers contributes to network latency. There are both software and hardware contributions to this latency. Proxy servers, like routers, can be software or hardware based. Software-based latency is most often greater than hardware-based latency.
    I would guess that removing any kind of latency "generating" obstacles within your control would likely improve iWeb function and decrease the incidence of publish errors. Some of these obstacles can include background processes, busy LAN activity (like VOIP use or streaming music/video or online gaming), wireless access points, proxy servers, and routers.
    On the other hand, I also think that if Apple increased iWeb's network timeout threshold, that most of the publishing errors that people experience could be eliminated.

  • Multiple proxy servers and session replication

              Hi,
              I'm in the middle of testing the 5.1sp10 that I set up recently.
              Say I have PROXY1 and PROXY2, connecting to the object layer.
              First, I point my browser to https://PROXY1/application. I did some stuff there
              that updated the session. Then I pointed my browser to https://PROXY2/application.
              The session was not replicated. Is this a normal behavior?
              What I thought I did was simulate DNS round-robin. I thought since the cookie
              knows which is the master and slave servers, the proxy can read the cookie, and
              I can continue with the session. Do I have to actually setup the DNS to do this?
              Thanks.
              

    No, that did not simulate a round robin. The change in server invalidates
              (in this case, makes invisible) the cookie.
              In your hosts file, add (with the correct names/addresses)
              192.168.0.17 proxy1
              192.168.0.18 proxy2
              Peace,
              Cameron Purdy
              Tangosol Inc.
              Tangosol Coherence: Clustered Coherent Cache for J2EE
              Information at http://www.tangosol.com/
              "Rudy" <[email protected]> wrote in message
              news:3c152f6d$[email protected]..
              >
              > Hi,
              >
              > I'm in the middle of testing the 5.1sp10 that I set up recently.
              >
              > Say I have PROXY1 and PROXY2, connecting to the object layer.
              > First, I point my browser to https://PROXY1/application. I did some stuff
              there
              > that updated the session. Then I pointed my browser to
              https://PROXY2/application.
              > The session was not replicated. Is this a normal behavior?
              >
              > What I thought I did was simulate DNS round-robin. I thought since the
              cookie
              > knows which is the master and slave servers, the proxy can read the
              cookie, and
              > I can continue with the session. Do I have to actually setup the DNS to
              do this?
              >
              > Thanks.
              

  • Running windows 7 firefox refuses to come up, proxy server is refusing connections network adminiastrater says proxy servers are correct and is issue with firefox what do I do/ do

    I start up firefox and it says the proxy server is refusing connection. It is configured to use a proxy server that is refusing connections. To check the proxy servers and ask network administrater to make sure proxy server is correct They say the proxy server is correct and it is a firefox problem. So what to I do now?

    Make sure that the Firefox connection settings are the same as in IE.
    You can find the connection settings in "Tools > Options > Advanced : Network : Connection"
    If you do not need to use a proxy to connect to internet then select No Proxy
    In Firefox 3.6.4 and later the default connection settings have been changed to "Use the system proxy settings".
    You can compare them with the IE settings in the Internet Options (Control Panel).
    Control Panel > Internet Options > Connections: LAN Settings

  • Mozilla just did an update and now won't connect to "proxy servers"

    Mozilla just did an update and now won't connect to "proxy servers".
    == This happened ==
    Every time Firefox opened

    Maybe this article will help: [[Cannot connect after upgrading Firefox]]

  • Proxy servers and port 80

    I don't know if this will transmit but I am suddenly losing contact with Apple discussions and get a white screen with a reference to Remote proxy servers / port80 / Apple discussions.
    Would anyone know what is going on and if the problem is my end or Apple's.
    Much obliged for some info.
    Regards to all,  71

    Klaus1 wrote:
    The glass is half full: THEY ARE WORKING ON IT!
    I'd be happy just having a glass!
    Actually you're right they are working on it but if we talked about the fix here we'd have to kill everyone below level 6.

Maybe you are looking for