Skip to content
  • Daniel Stenberg's avatar
    - Hang Kin Lau found and fixed: When I use libcurl to connect to an https · 060f7ca2
    Daniel Stenberg authored
      server through a proxy and have the remote https server port set using the
      CURLOPT_PORT option, protocol gets reset to http from https after the first
      request.
    
      User defined URL was modified internally by libcurl and subsequent reuse of
      the easy handle may lead to connection using a different protocol (if not
      originally http).
    
      I found that libcurl hardcoded the protocol to "http" when it tries to
      regenerate the URL if CURLOPT_PORT is set. I tried to fix the problem as
      follows and it's working fine so far
    060f7ca2
To find the state of this project's repository at the time of any of these versions, check out the tags.