Created
February 17, 2022 07:48
-
-
Save solancer/979f36205dd5dc17e3841f39618aec67 to your computer and use it in GitHub Desktop.
unity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UnityWebRequest www = UnityWebRequest.Put(URL_01, "{\"name\":\"user_01\",\"address\":{\"raw\":\"MountFiji\"}}"); | |
www.SetRequestHeader ("Content-Type", "application/json"); | |
yield return www.SendWebRequest(); | |
if (www.isNetworkError || www.isHttpError) | |
{ | |
Debug.Log(www.error); | |
} | |
else | |
{ | |
Debug.Log("Form upload complete!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment