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 di...@apache.org on 2006/10/26 13:24:21 UTC

svn commit: r467962 - in /webservices/axis2/trunk/c: modules/core/transport/http/http_request_line.c modules/core/transport/http/http_worker.c samples/client/echo/echo.c samples/user_guide/clients/echo_util.c

Author: dinesh
Date: Thu Oct 26 04:24:20 2006
New Revision: 467962

URL: http://svn.apache.org/viewvc?view=rev&rev=467962
Log:
fixed: incorrect handling of spaces in rest get method

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/http_request_line.c
    webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c
    webservices/axis2/trunk/c/samples/client/echo/echo.c
    webservices/axis2/trunk/c/samples/user_guide/clients/echo_util.c

Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_request_line.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/http_request_line.c?view=diff&rev=467962&r1=467961&r2=467962
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_request_line.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_request_line.c Thu Oct 26 04:24:20 2006
@@ -203,7 +203,7 @@
     }
     *tmp++ = '\0';
     uri = tmp;
-    tmp = strchr(tmp, ' ');
+    tmp = strrchr(tmp, ' ');
     if (NULL == tmp)
     {
         AXIS2_FREE(env->allocator, req_line);

Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c?view=diff&rev=467962&r1=467961&r2=467962
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c Thu Oct 26 04:24:20 2006
@@ -174,7 +174,7 @@
     axis2_char_t *url_external_form = NULL;
     axis2_qname_t *tmp_qname = NULL;
     axis2_char_t *svc_grp_uuid = NULL;
-	 axis2_char_t *path = NULL;
+    axis2_char_t *path = NULL;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_PARAM_CHECK(env->error, svr_conn, AXIS2_FAILURE);
@@ -249,15 +249,16 @@
         axis2_http_worker_set_transport_out_config(http_worker, env, conf_ctx,
                 response);
     }
+
     svr_ip = AXIS2_SIMPLE_HTTP_SVR_CONN_GET_SVR_IP(svr_conn, env);
 
-	path =   AXIS2_HTTP_REQUEST_LINE_GET_URI(
-		AXIS2_HTTP_SIMPLE_REQUEST_GET_REQUEST_LINE(
-			simple_request, env), env);
+    path =   AXIS2_HTTP_REQUEST_LINE_GET_URI(
+	AXIS2_HTTP_SIMPLE_REQUEST_GET_REQUEST_LINE(
+	    simple_request, env), env);
 
     request_url = axis2_url_create(env, "http", svr_ip,
-								   http_worker_impl->svr_port,
-								   path);
+				   http_worker_impl->svr_port,
+				   path);
 
 	url_external_form = AXIS2_URL_TO_EXTERNAL_FORM(request_url, env);
     property = axis2_property_create(env);

Modified: webservices/axis2/trunk/c/samples/client/echo/echo.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/echo.c?view=diff&rev=467962&r1=467961&r2=467962
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo/echo.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo/echo.c Thu Oct 26 04:24:20 2006
@@ -159,7 +159,7 @@
     ns1 = axiom_namespace_create(env, "http://ws.apache.org/axis2/c/samples", "ns1");
     echo_om_ele = axiom_element_create(env, NULL, "echoString", ns1, &echo_om_node);
     text_om_ele = axiom_element_create(env, echo_om_node, "text", NULL, &text_om_node);
-    AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, "echo5", text_om_node);
+    AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, "Hello World!", text_om_node);
 
     om_str = AXIOM_NODE_TO_STRING(echo_om_node, env);
     if (om_str)

Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_util.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_util.c?view=diff&rev=467962&r1=467961&r2=467962
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_util.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_util.c Thu Oct 26 04:24:20 2006
@@ -30,7 +30,7 @@
     ns1 = axiom_namespace_create(env, "http://ws.apache.org/axis2/c/samples", "ns1");
     echo_om_ele = axiom_element_create(env, NULL, "echoString", ns1, &echo_om_node);
     text_om_ele = axiom_element_create(env, echo_om_node, "text", NULL, &text_om_node);
-    AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, "echo5", text_om_node);
+    AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, "Hello World!", text_om_node);
 
     om_str = AXIOM_NODE_TO_STRING(echo_om_node, env);
     if (om_str)



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org