Trying to send HTTP POST request from Unity but it’s empty? Here is why…



In this blog post I’m going to share my annoying experience with Unity. It is about sending POST request from Unity C# by using UnityWebRequest.

I tried to send the post data, but the server did not detect it. It took me hours to figure out, and finally I found an answer from StackOverflow, and I implemented it. Now it works.

Previously when it was not working, I tried to send post request to my domain without file name and extension. For example the url was https://mydomain.com and it never worked.

But after changing it to https://mydomain.com/index.php now it worked!

Thanks for that answer!

loading...

Leave a Reply

Your email address will not be published.