You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "ttg (JIRA)" <ji...@apache.org> on 2008/07/15 16:41:31 UTC
[jira] Created: (AXIS2C-1235) Need a way to specify libcurl options
Need a way to specify libcurl options
-------------------------------------
Key: AXIS2C-1235
URL: https://issues.apache.org/jira/browse/AXIS2C-1235
Project: Axis2-C
Issue Type: New Feature
Components: transport/http
Affects Versions: Current (Nightly)
Reporter: ttg
Fix For: Current (Nightly)
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);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Updated: (AXIS2C-1235) Need a way to specify libcurl options
Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-1235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
S.Uthaiyashankar updated AXIS2C-1235:
-------------------------------------
Fix Version/s: (was: Current (Nightly))
1.6.0
Assignee: S.Uthaiyashankar
> Need a way to specify libcurl options
> -------------------------------------
>
> Key: AXIS2C-1235
> URL: https://issues.apache.org/jira/browse/AXIS2C-1235
> Project: Axis2-C
> Issue Type: New Feature
> Components: transport/http
> Affects Versions: Current (Nightly)
> Reporter: ttg
> Assignee: S.Uthaiyashankar
> Fix For: 1.6.0
>
>
> 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);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (AXIS2C-1235) Need a way to specify libcurl
options
Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-1235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
S.Uthaiyashankar resolved AXIS2C-1235.
--------------------------------------
Resolution: Fixed
Fixed in revision 888696.
Thank you very much for the patch
> Need a way to specify libcurl options
> -------------------------------------
>
> Key: AXIS2C-1235
> URL: https://issues.apache.org/jira/browse/AXIS2C-1235
> Project: Axis2-C
> Issue Type: New Feature
> Components: transport/http
> Affects Versions: Current (Nightly)
> Reporter: ttg
> Assignee: S.Uthaiyashankar
> Fix For: Next Version
>
> Attachments: axis2c-1235.txt
>
>
> 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);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AXIS2C-1235) Need a way to specify libcurl options
Posted by "David K. Taylor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-1235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David K. Taylor updated AXIS2C-1235:
------------------------------------
Attachment: axis2c-1235.txt
The attached patch file is a partial fix for this bug. I needed a subset of the requested options (HTTP authentication and SSL peer verify) so I implemented them and have used them. I coded up how to add most of the other requested options, but I have not tested them, so take this as a suggestion. The remaining options not yet supported are the proxy authentication and proxy type options. This patch adds 2 new options to AXIS2/C for verify host and verify peer. These are only used by libcurl. I hope this helps.
> Need a way to specify libcurl options
> -------------------------------------
>
> Key: AXIS2C-1235
> URL: https://issues.apache.org/jira/browse/AXIS2C-1235
> Project: Axis2-C
> Issue Type: New Feature
> Components: transport/http
> Affects Versions: Current (Nightly)
> Reporter: ttg
> Assignee: S.Uthaiyashankar
> Fix For: 1.6.0
>
> Attachments: axis2c-1235.txt
>
>
> 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);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AXIS2C-1235) Need a way to specify libcurl
options
Posted by "Aaron Oneal (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-1235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714673#action_12714673 ]
Aaron Oneal commented on AXIS2C-1235:
-------------------------------------
Nice, I was just looking for the same thing. Thanks!
> Need a way to specify libcurl options
> -------------------------------------
>
> Key: AXIS2C-1235
> URL: https://issues.apache.org/jira/browse/AXIS2C-1235
> Project: Axis2-C
> Issue Type: New Feature
> Components: transport/http
> Affects Versions: Current (Nightly)
> Reporter: ttg
> Assignee: S.Uthaiyashankar
> Fix For: Next Version
>
> Attachments: axis2c-1235.txt
>
>
> 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);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.