Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

UnityWebRequest.Put fails on iOS

$
0
0
I am trying to upload a file to a vanilla Apache Webserver (v2.4.18) using UnityWebRequest and its Put(uri, bodyData)-Method. The server uses HTTPS and an authentication via username and password. Here's the code I use:
Code (CSharp):
  1. string url = "https://" + username + ":" + password + "@" + serverUrl + "/" + filename;
  2. byte[] myData = Encoding.UTF8.GetBytes(csvString);
  3. UnityWebRequest www = UnityWebRequest.Put(url, myData);
  4. yield return www.Send();
  5. // and some debugging errors etc. after...
UnityWebRequest.Put fails on iOS

Viewing all articles
Browse latest Browse all 10823

Trending Articles



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