Wait for value to not be null until thread finishes
Hey, how can I start a thread and wait until a string is not null/empty to return it? I'm calling a static string from another class, this starts a new thread that gets the response from the server and...
View ArticleUnityWebRequest.Put fails on iOS
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....
View ArticlePosting JSON-RPC with WebRequest
I'm trying to communicate with a server that can only receive requests using JSON-RPC 2.0 with POST method. I have an object I need to convert to JSON form I can send. One of the fields is a dictionary...
View ArticleUnityWebRequest uploadProgress
Hi, I am using UnityWebRequest to form multipart request and upload file to server. To track progress I am checking uploadProgress property of this request. The progress works well on window in Editor...
View ArticleAccess raw AssetBundle data using UnityWebRequest?
Following Unity's advice, *starting Unity 5.3, it is strongly recommended to use [UnityWebRequest][1]* -rather than [WWW.LoadFromCacheOrDownload][2]- to download AssetBundles from a server. However, we...
View ArticleWebGL Uncaught RangeError
I'm developing a game on webgl platform and I'm stuck in this error. * Uncaught RangeError: Source is too large : Error at jsStackTrace...
View ArticleWWWForm and WWW
Guys I'm doing the following: void Start () { StartCoroutine (Login ()); } IEnumerator Login() { WWWForm formData = new WWWForm (); formData.AddField ("user", "asfas"); formData.AddField ("pass",...
View ArticleHTTPWebRequest.GetResponce for NTLM protocol not working on Android
I am trying to access data from IIS Server protected by NTLM protocol using HTTPWebRequest, which works fine on unity editor( windows ) but fails in Android Mobile App. I am getting 401 Unauthorized...
View ArticlePrevent UnityWebRequest.url from decoding string
I'm trying to make a request to a url that contains %2F as part of the url var myUrl = "http://mydatabase.com/coolFolder%2FcoolFile"; However, when I enter this url in to a UnityWebRequest either via...
View ArticleUnityWebRequest timing out ? Send() finishes but isDone = false
i'm building a long-poll system using the UnityWebRequest system in Unity 5.3.3. in a long-poll system, the normal operation is the client makes a request to the server and the server holds on to the...
View ArticleDo some operations/statements implicitly access MainAsset of an AssetBundle,...
Super strange issue, and maybe a bug within Unity. In a C# base applicaiton, when downloading an asset bundle from S3 occasionally, on both mobile devices and within the editor, the following error is...
View ArticleAccessing X509Store returns zero certificates
I need to do HTTP web requests that require a client X509 certificate to authenticate. I want to use the X509 certificates that are already installed on the computer. When I query the store for the...
View ArticleUnityWebRequest: Out of memory
Sometimes we got error in editor when using UnityWebRequest. Error: Out of memory ResponseCode: 0 Looks like it only appears in Editor. After restarting Unity this error disappears. How can fix it?
View ArticleHow to avoid reestablishing an HTTPS request, use Connection: Keep-Alive or...
Hi I have an application which uses HTTPS to communicate with an API. Establishing the initial handshake and connection is killing our performance. When profiling with Apache's ab tool the time it...
View ArticleDownloadHandlerAssetBundle from password protected ftp server on Android
Is it possible to use the DownloadHandlerAssetBundle (UnityWebRequest) to download from a password protected ftp server on Android? I got it working on PC by using this format for the url:...
View ArticleHow to purge cookies set previously in header with UnityWebRequest
Hi guys, We have php sessions set up in my team's game but we're having problems deleting/purging cookies after receiving them and setting them in our database controller. The Unity Editor doesn't seem...
View ArticleGet redirection URL from UnityWebRequest
I am issuing a UnityWebRequest with a URL that has redirection involved. The redirection is being logged as a warning by the compiler. Is there any way of accessing that redirection URL? I've tried the...
View ArticleHow to constantly get new JSON information with GET request from a stream?...
Hello :) I have a task to learn how to use various API's and I managed to connect and send simple GET requests (I am using this API and this is one of the examples:...
View ArticleProblem to get texture2D in IEnumerator with UnityWebRequest
Hi, in my app I get text and picture from a php script to built a news. I get the without problem with text with : UnityWebRequest www = new UnityWebRequest(m_SendURL); www.downloadHandler = new...
View ArticleError getting response stream (Write: The authentication or decryption has...
Hello! I have a script that call a webservice over https build with swagger in C# and I´m getting: Error calling AuthenticatePost: Error getting response stream (Write: The authentication or decryption...
View Article