Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1235

Need a way to specify libcurl options

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0
    • Component/s: transport/http
    • Labels:
      None

      Description

      I need some way to specify additional options for libcurl, but at the moment there is no way to access the CURL* handler.

      For example I want the client to connect via SOCKS5 proxy with authorization, increase connection timeouts and make it not complain about self-signed SSL certificates. Here is the list of libcurl options I would use:

      curl_easy_setopt(handler, CURLOPT_PROXY, proxy);
      curl_easy_setopt(handler, CURLOPT_PROXYPORT, port);
      curl_easy_setopt(handler, CURLOPT_PROXYTYPE, type);
      curl_easy_setopt(handler, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
      curl_easy_setopt(handler, CURLOPT_PROXYUSERPWD, userpwd);
      curl_easy_setopt(handler, CURLOPT_TIMEOUT, timeout);
      curl_easy_setopt(handler, CURLOPT_CONNECTTIMEOUT, 10);
      curl_easy_setopt(handler, CURLOPT_SSL_VERIFYHOST, 0);
      curl_easy_setopt(handler, CURLOPT_SSL_VERIFYPEER, 0);

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ttg ttg

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment