Menu

#45 HTTPS via Proxy

v1.0_(example)
closed
nobody
None
5
2015-09-12
2010-08-12
No

I have issue that cannot upload https with proxy and follows exception.
HttpProtocolFinderThread wjhk.jupload2.exception.JUploadIOException: Unable to open socket

I looked follows code at HttpConnect#connect(). I think this comment is correct but this code will create direct SSL connection to HTTPS server.

       if (useProxy) {
           if (proxy.type() == Proxy.Type.HTTP) {
               // First establish a CONNECT, then do a normal SSL
               // thru that connection.
              this.uploadPolicy.displayDebug(
                      "Using SSL socket, via HTTP proxy", 20);
              ret = (Socket) context.getSocketFactory().createSocket(
                      url.getHost(), port);

I make https via proxy patch. chek it please.

Discussion

  • Tsukasa Hamano

    Tsukasa Hamano - 2010-08-12
     
  • Etienne

    Etienne - 2010-08-24

    Hi,

    I commited your patch in SVN rev 1389. I didn't test it, as I currently have no https server outside my proxy, to test it.

    But, from the code diff, I guess it can only work better ... ;-)

    Thanks
    Etienne

     
  • Tsukasa Hamano

    Tsukasa Hamano - 2010-09-16
     
  • Tsukasa Hamano

    Tsukasa Hamano - 2010-09-16

    Thank you for your response. This patch is working in most situations.
    But sometimes failure at http responce handling. please apply this patch(jupload-https_via_proxy_2nd.patch).
    Thank you.

     
  • Etienne

    Etienne - 2015-09-12

    Was fixed a long time ago

     
  • Etienne

    Etienne - 2015-09-12
    • status: open --> closed
    • Group: --> v1.0_(example)
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB