Hi,
I'm testing http request function.
even though it's working fine on PHP side (POST data had been received & run correctly)
I got error on Playfab side with the error log below.
"result": { "responseContent": null, "httpStatus": null, "httpStatusCode": 0, "requestError": "InternalError" }
I checked old topic, and try remove the header, but the solution didn't work for me.
https://community.playfab.com/questions/5744/when-i-try-https-request-i-got-cloudscripthttprequ.html
https://community.playfab.com/questions/4408/error-in-cloudscript-http-request-says-see-the-err.html
here is my code.
handlers.TestHTTPRequest = function (args, context) { var headers = {}; var body = { name: "NAME DATA", address: "90/147 soi songsaafg" }; var url = "http://xxxxxxxx.net/sendemailpost.php"; var content = JSON.stringify(body); var httpMethod = "post"; var contentType = "application/json"; // The pre-defined http object makes synchronous HTTP requests var response = http.request(url, httpMethod, content, contentType, headers); return { responseContent: response }; };
Could you please help let me know if I did something wrong?
Best regards,
Bodin