Quantcast
Channel: Questions in topic: "webrequest"
Browsing all 387 articles
Browse latest View live
↧

Is it possible to either Clone or Re-Send a UnityWebRequest?

We've recently started using UnityWebRequests and something that it is lacking is some way to dictate how many retries it should do before failure, and a manual timeout timer. No big deal, we'll just...

View Article


UnityWebRequest.Post() has multipart/form-data strangely formatted when...

A note before beginning, I know that WWW and WWWForm work, but since Unity is trying to get people off of that system, I would like to know why their new system breaks in my case. I'm using Unity 5.6...

View Article


Best cross platform Http Library?

I'm building a multiplayer game with a custom Java Spring Boot backend. Unity will be the frontend client to this application in order to be able to ship the game to all major platforms. In order to...

View Article

Multiple 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 Article

failing 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 Article


Multiple 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 Article

Why 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 Article

Setting 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 Article


UnityWebRequest 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 Article


How 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

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 Article

UnityWebRequest.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 Article

Posting 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 Article


UnityWebRequest 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 Article

UnityWebRequest Response to Stream

I want to download a binary file via an URL on my UWP app (HoloLens). In the editor everything works fine with either WebClient.DownloadData or a WebRequest, but those don't work in UWPs. I think the...

View Article


How to use the new IMultipartFormSection in a UnityWebRequest.Post

I'm new to online interaction and after successfully running a local server with Visual Studio Code I tried to Get/Post from within a unity project, I was able to use Get just fine, but I've been...

View Article

SetRequestHeader cookie set twice

Hi! I try to set a cookie in a request header like this: webrequest.SetRequestHeader("Cookie", "PHPSESSID=" + sessID); When i run it from the editor, it sends the cookie to the webserver normally...

View Article


WWWForm 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 Article

Using UnityWebRequest POST to upload image files

Hello! I'm trying to upload image files using the UnityWebRequest class. My code looks like this: //get image var imageData = _sprite.texture.GetRawTextureData(); var data = new List { new...

View Article

Re-using a buffer for posting variable-length data to a web server?

I'm trying to find a way to minimize allocations and GC hitches when creating large web requests with a bounded but unknown size. Ideally, I would like to preallocate an array of `byte`s, fill the...

View Article
Browsing all 387 articles
Browse latest View live


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