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!
-
@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?
-
@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.
-
@guangcoder In HISE try writing the data directly into the payload, instead of using variables, and see if that works.
-
@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!
-
@guangcoder said in Help me understand Server.callWithPOST:
Server.setBaseURL("http://hise.audio");
This needs to be your server URL.