You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by du...@apache.org on 2007/06/26 10:53:35 UTC
svn commit: r550742 -
/webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c
Author: dumindu
Date: Tue Jun 26 01:53:34 2007
New Revision: 550742
URL: http://svn.apache.org/viewvc?view=rev&rev=550742
Log:
Fixed the ssl client test.
Modified:
webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c
Modified: webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c?view=diff&rev=550742&r1=550741&r2=550742
==============================================================================
--- webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c (original)
+++ webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c Tue Jun 26 01:53:34 2007
@@ -191,14 +191,17 @@
NULL, 0, NULL);
url = axutil_url_create(env, "https", "localhost", 9090,
NULL);
- /* Add an ssl certificate variable */
- /*setenv("AXIS2_SSL_CA_FILE", "cert.pem", 1);*/
+
header = axis2_http_header_create(env, "Host", axutil_url_get_server(url, env));
axis2_http_simple_request_add_header(request, env, header);
client = axis2_http_client_create(env, url);
/* if you weant to test the proxy uncomment following */
- /*AXIS2_HTTP_CLIENT_SET_PROXY(client, env, "127.0.0.1", 8080);*/
+ /*axis2_http_client_set_proxy(client, env, "127.0.0.1", 8080);*/
+
+ /* Add CA/Server certificate */
+ status = axis2_http_client_set_server_cert(client, env,
+ "/home/dummy/dummyCA/demoCA/cacert.pem");
status = axis2_http_client_send(client, env, request, NULL);
if (status < 0)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org