Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-6644

FIWARE.Question.Tech.Apps.ApplicationMashup.ComponentDevelopment.POSTRequestTransformedToGET

    Details

      Description

      Created question in FIWARE Q/A platform on 23-05-2016 at 10:05
      Please, ANSWER this question AT http://stackoverflow.com/questions/37386670/http-post-request-gets-transformed-to-get-request

      Question:
      HTTP POST request gets transformed to GET request

      Description:
      How exactly does the WireCloud proxy work? We use the following code for a request via the WireCloud proxy:

      MashupPlatform.http.makeRequest(url, {
      method: 'POST',
      forceProxy: true,
      onSuccess: function (response)

      { success(response); }

      ,
      onFailure: function (response)

      { error(response); }

      ,
      onComplete: function ()

      { complete(); }

      });

      The browser network analysis shows that a POST request gets send. Our webservice that gets called by the url however logs, that it receives a GET request.

      We now call the webservice via jQuery:

      $.ajax(

      { type: "POST", url: url, data: null, success: success }

      );

      This works perfeclty fine when we set the CORS header in our webservice.

      So what may be the reason, that WireClouds proxy does not work as expected?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2016-05-23 12:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2016-05-23 12:05|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2016-05-23 15:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2016-05-23 15:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2016-05-23 18:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2016-05-23 18:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2016-05-30 12:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2016-05-30 12:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            aarranz Álvaro Arranz
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: