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

query string not passed when http get rest without soap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.7.0
    • None
    • core/transport
    • AIX

    Description

      http_sender.c module does not include query string for "http get with REST
      (no soap).
      I have change the following line of codes:
      More or Less line 6xx.

      /* 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
      {
      request_params = axutil_url_get_query(url, env);

      if(request_params)

      { /* filling back REST Query String (no soap) */ path = axutil_strcat(env, axutil_url_get_path(url, env), axutil_url_get_query(url, env), NULL); AXIS2_FREE(env->allocator, request_params); request_params = NULL; }

      else

      { path = axutil_strdup(env, axutil_url_get_path(url, env)); }

      }

      Attachments

        1. http_sender.c.patch
          0.8 kB
          Jean-Marc Lamond

        Activity

          People

            Unassigned Unassigned
            jmlamond Jean-Marc Lamond
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified