Quantcast
Channel: Questions in topic: "webrequest"
Viewing all articles
Browse latest Browse all 387

WWWForm not posting variables

$
0
0
I have this working just fine in one project however in a second project my _POST variables are blank. Thoughts? IEnumerator GetClub() { Debug.Log("GetClub: - START"); WWWForm form = new WWWForm(); form.AddField("state", "TX"); form.AddField("author", "MYNAME"); UnityWebRequest res = UnityWebRequest.Post(getGlubsURL, form); yield return res.SendWebRequest(); Debug.Log(res.downloadHandler.text); and the php file is a simple and console in unity is: HERE author: [] state: [] UnityEngine.Debug:Log (object)

Viewing all articles
Browse latest Browse all 387

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>