Unity Web Request getting response
Hi, I am trying fetch some data from a url. I am using Web Request, post for this. Because I need to send a data, and take a response from the server. But I cant find a way to log the response data.....
View Article$_FILES is empty when I send a file from WWWForm
Hi, I'm trying to send a file to a server using WWWForm, but I have a problem of $_FILES receiving it, it doesn't receive any data, I checked that both (the $_FILES["name"] and filed name) are the...
View ArticleSet Content-Length header for UnityWebRequest POST requests in 2017.3?
I am trying to send multipart form data via a `UnityWebRequest` to a REST service. The request is built with the following code: public IEnumerator Post(string uri, WWWForm data, Action onFinished =...
View ArticleWebRequest Post empty on iOS
I am performing a simple UnityWebRequest.Post, it works perfectly fine on PC and Android but not on iOS both in the editor and on the iOS device. Even with hard coded values, the WWWForm that is being...
View ArticleAPI POST call works in POSTMAN but not in Unity
Hey everyone. In my project, after a player inputs their first name, last name, and email address, an API POST call is made sending these strings after being saved in variables. I have tested this call...
View ArticleUndefined index error
hello all, after the update to 2017.3.0f3 i become a error message (Notice: Undefined index ) from my server when i try a Webrequest, few days ago it works fine :( public IEnumerator anmeld_coro(string...
View ArticleUnityWebRequest.downloadProgress keep coming back
hey guys, i'm trying to fetch some informations from my server, and now i wanna display the progress on a bar (Like a download bar) but the download progress keep coming and going, there's the log of...
View ArticlePATCH and DELETE methods - HTTP Requests problem
Hello ! I'm posting here today because I got a little problem. I have to make a Login menu in Unity. There is already an API, that I didn't make, I just have to send requests from Unity and analyze the...
View ArticleUnityWebRequest POST to PHP not work
I use documentation with WWWForm: https://docs.unity3d.com/Manual/UnityWebRequest-SendingForm.html C#: void Start() { StartCoroutine(Upload()); } IEnumerator Upload(){ yield return Upload1(); yield...
View ArticleWeb request blocked because of Cross-Origin Request Blocked
Hi all, I have a project that makes WWW and UnityWebRequest.GetAssetBundle requests to an Apache server. When I run it from Unity IDE (clicks the "play" button) it works great. However, when I build it...
View ArticleNot enough data provided while loading bytes downloaded from url picture to...
I am downloadeing a picture from [this URL][1]: using Unity Request: coroutineStarter.StartCoroutine(SendRequestCoroutine(request, (finishedRequest) => { if(finishedRequest.isNetworkError ||...
View ArticleUnityWebRequest.uploadProgress is completed but sending the request ends much...
Hi all. I am trying to implement a progress bar to show the progress of loading a file to a server, but UnityWebRequest.uploadProgress is completed much earlier than the request takes to be fully done....
View ArticleUnityWebRequest seems to crash application on Application.Quit()?
Our application on startup creates a number of UnityWebRequests to download some data. If we quit the application right after we've launched it, and the requests are still active, we seem to experience...
View ArticleMultiple headers with UnityWebRequest
Hi, im trying to make a Post request using UnityWebRequest, and the endpoint in using requires me to have 2 headers: Content-type and Authorization, i tried to do this : using (UnityWebRequest www =...
View Articlefailing to download assetbundle manifest object with UnityWebRequest
I can download an assetbundle file via UnityWebRequest without problems, I can load/unload and all. The problem is, I've yet to successfully download a manifest file (same filename with .manifest...
View ArticleMultiple headers with UnityWebRequest
I trying to make a Post request using UnityWebRequest, and the endpoint in using requires me to have 2 headers,but I get unknown http error cant really find any good info about doing this in the new...
View ArticleWhy is www not returning?
I have the following Code which I call from StartCoroutine IEnumerator WaitForRequest(WWW www) { yield return www; Debug.Log(www.text); } For the most part this works. The web request is being made ( I...
View ArticleSetting up a web service in Unity?
Hi everyone, since I found a lot of answers regarding the question how to consume a web service within Unity. But now I have the scenario that I wanna realize a web service in Unity so that a web...
View ArticleUnityWebRequest Responds with 405
The response of 405 would lead me to believe that my method I'm calling in my web api isn't set to accept post. However, I can type the same url in fiddler and it works, but with Unity I get 405. What...
View ArticleHow to upload video on the server and show upload progress at same time while...
How to upload video on the server and show upload progress at same time while uploading the data using new unity web request. Please give me some example or code to come over from this problem
View Article