HISE Logo Forum
    • Categories
    • Register
    • Login

    Help me understand Server.callWithPOST

    Scheduled Pinned Locked Moved Scripting
    26 Posts 3 Posters 803 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      guangcoder @d.healey
      last edited by guangcoder

      @d-healey That's right :)), I learn from anywhere, collect information and test, so i haven't got official document, just have the form of method, so contents need create and learn from professional users. For Hise coding, i learn a lot from you!

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @guangcoder
        last edited by

        @guangcoder said in Help me understand Server.callWithPOST:

        @d-healey That's right :)), I learn from anywhere, collect information and test, so i haven't got official document, just have the form of method, so contents need create and learn from professional users. For Hise coding, i learn a lot from you!

        Do you even have the required server-side code installed on your server?

        HISE Development for hire.
        www.channelrobot.com

        G 1 Reply Last reply Reply Quote 0
        • G
          guangcoder @Lindon
          last edited by

          @LindonAt the moments, i just test om local server, then test request by Postman, it work!```

           {
              "email": "abcd@outlook.com",
              "productKey": "abcd-1234",
          }
          

          Here is the form that i tested, it responded success! However, on Hise not work, it may have some restriction with constant or I need learn more document for understanding its working method.

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @guangcoder
            last edited by

            @guangcoder In HISE try writing the data directly into the payload, instead of using variables, and see if that works.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            G 1 Reply Last reply Reply Quote 0
            • G
              guangcoder @d.healey
              last edited by

              @d-healey Thanks Bro for suggestion, This problem may need more research. Ah, Could you please, give a instant about this constant:

              Server.setBaseURL("http://hise.audio");
              
              const var p = 
              {
                  "first_argument": 9000
              };
              
              // This dummy file just returns the `first_argument` as `post_argument`...
              Server.callWithPOST("post_test.php", p, function(status, response)
              {
                  Console.print(response.post_argument);
              });
              

              I read documents but not really understand! Thank you!

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @guangcoder
                last edited by

                @guangcoder said in Help me understand Server.callWithPOST:

                Server.setBaseURL("http://hise.audio");

                This needs to be your server URL.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                25

                Online

                1.8k

                Users

                12.2k

                Topics

                106.2k

                Posts