Skip to content
Advertisement

UnityWebRequest POST to PHP not work

I use documentation with WWWForm: https://docs.unity3d.com/Manual/UnityWebRequest-SendingForm.html

C#:

JavaScript

PHP:

JavaScript

Response (MULTIPART and WWWForm):

JavaScript

$_POST is empty… (that’s my problem)

Use Unity 2017.3.

I used UnityWebRequest.Send (Unity 5.6) before and it worked for me until it became obsolete.

Thanks.

Advertisement

Answer

This seems to work for me, I hope it helps.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement