HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. Daanyoo
    3. Best
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 11
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: callWithPOST change content type

      @Christoph-Hart this is how im passing the JSON data:

      inline function requestDirectLicenseActivation(deviceName, deviceSignature, accessToken)
          {
              local requestData = {
                  "deviceName": deviceName,
                  "deviceSignature": deviceSignature
              };
              
              currentAccessToken = accessToken;
              
              makeHttpRequest("POST", "/client/licenses/" + PRODUCT_ID + "/request", trace(requestData), handleDirectLicenseResponse);
          }
      

      Even when converting the JSON object using trace, I'm getting the 415 error due to an unsupported media type, as the endpoint will not receive the content as application/json, as its converted to x-www-form-urlencoded data.

      a7efb73a-5e4a-4f34-ad20-59419326215a-image.png

      posted in General Questions
      D
      Daanyoo