Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

How to get Response Body and not Response header from Unity to server?

$
0
0
Code (CSharp):
  1. public void SignUpNow() {
  2.  
  3. WWWFormform=newWWWForm();
  4. form.AddField("username",""+username);
  5. form.AddField("email",""+emailId);
  6. form.AddField("password",""+password);
  7. form.AddField("devicename","mydevice1");
  8. form.AddField("devicetoken","32423");
  9. form.AddField("deviceuuid","5555555");
  10. form.AddField("isiphone",0);
  11. WWWwww=newWWW(registrationURL,form);
  12.  
  13. StartCoroutine(WaitForRequest(www));
  14. }
  15.  
  16. IEnumeratorWaitForRequest(WWWwww)
  17. {
  18. yield return www;
  19.  
  20. if(www.responseHeaders.Count>0){...
How to get Response Body and not Response header from Unity to server?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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