Uploaded image for project: 'FeedHenry'
  1. FeedHenry
  2. FH-2833

Data not encode right on GET requests

    XMLWordPrintable

Details

    Description

      The client sdk seems to use json to serialize get parameters for http that is not right.

      Execute the following:

      Unable to find source-code formatter for language: csharp. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      var data = new Dictionary<string, object> { { "emailId", "tony.somebody@testing.com" } };          
      var response = await FH.Cloud("/userDetails", "GET", null, data);
      

      See that the get request is `http://host:port/userDetails?emailId=%22tony.somebody%40testing.com%22` instead of `http://host:port/userDetails?emailId=tony.somebody%40testing.com`

      it's using json to encode the url parameters.

      Attachments

        Activity

          People

            edewit@redhat.com Erik Jan de Wit
            edewit@redhat.com Erik Jan de Wit
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: