Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

[UnityWebRequest] wanting to get only plain text but getting whole html

$
0
0
Hello, Unity people! Let me cut to the chase. UnityWebRequest.Post returns whole html and not plain text only on "iOS". There's no problem on Mac or Android. Below is the result I got from iphone. It should be just MD5 and result text. ![alt text][1] Below is the C# code snippet. IEnumerator Request (int session, WWWForm form, string filePHP, Callback callback) { string url = GetURLPrefix () + filePHP + '?'; UnityWebRequest www = UnityWebRequest.Post (url, form); // to work with ios www.chunkedTransfer = false; yield return www.Send(); if (callback != null) callback (session, GetResponseStatus (filePHP, www.downloadHandler.text), GetResponseInfo (www.downloadHandler.text)); } Below is the PHP script I'm calling. bad internet connection"); } if($passcode != $phpPasscode){ die("Passcode doesn't match => bad approach"); } $onlineUserCount = GetOnlineUserCount($conn); SendResultMD5(1 . $phpSeperate . $onlineUserCount); $conn->close(); ?> function SendResultMD5($result) { $md5 = GetMD5(GetPasscode()); die(md5($result) . $md5 . $result); } Could anyone help me here? I want to get out of darkness and be free again. [1]: /storage/temp/112112-temp-1519775343761-425457526.jpeg

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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