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 "Jean-Marc Lamond (JIRA)" <ji...@apache.org> on 2013/03/01 18:23:14 UTC

[jira] [Created] (AXIS2C-1626) query string not passed when http get rest without soap

Jean-Marc Lamond created AXIS2C-1626:
----------------------------------------

             Summary: query string not passed when http get rest without soap
                 Key: AXIS2C-1626
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1626
             Project: Axis2-C
          Issue Type: Bug
          Components: core/transport
    Affects Versions: 1.7.0
         Environment: AIX
            Reporter: Jean-Marc Lamond
            Priority: Minor
             Fix For: 1.7.0


http_sender.c module does not include query string for "http get with rest".
I have change the following line of codes:
More or Less line 650.

        /* Processing HTTP GET, HEAD and DELETE */ 
        axis2_char_t *request_params = NULL;
        axis2_char_t *path = NULL; 
        request_params = axis2_http_sender_get_param_string(sender, env, msg_ctx); 
        if(request_params)
        {
            /* substituting AXIS2_Q_MARK for "?" */
            path = axutil_strcat(env, axutil_url_get_path(url, env), AXIS2_Q_MARK_STR,
                request_params, NULL);
            AXIS2_FREE(env->allocator, request_params);
            request_params = NULL;
        }
        else
        {
            /* JML Begin */
            /* path = axutil_strdup(env, axutil_url_get_path(url, env)); */
            path = axutil_strcat(env, axutil_url_get_path(url, env),
                axutil_url_get_query(url, env), NULL);
            /* JML End */
        }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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