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

Data pass using POST method - WebRequest object

I want to use POST method to pass data over web server. I want to retrieve data provided by web server in JSON format. I have used following code by referring Unity Manual. void Start () {...

View Article


Pass Header Data in UnityWebRequest

I want to pass header information to my web service call. I have following code to use but don't know how to pass header data with same request. void Start () { StartCoroutine (LoadLoginInfo ()); }...

View Article


UnityWebRequest.GetTexture and EncodeToPNG

Hi friends! I need to ask you about this error with the UnityWebRequest.GetTexture function. I have a code with the WWW class to get image from Azure, then I create sprites from this images and use...

View Article

UnityWebRequest ContentType not Overriding

I am constructing a file post to a REST api. The REST api is specifically looking for mulipart/form-data content. Seems like now matter how I try and override it, the content-type when it gets to the...

View Article

Issue with WWW/UnityWebRequest when sending JSON to server

Hi all, I have a problem when using either WWW/UnityWebRequest to send JSON data to my server. I have tested my server request API on...

View Article


Handle Blank Response From Web Server

At present, I was facing some sort of weird problem. I turn off my internet connection to put some handling code over their. I thought it will return me some error code but its just giving me blank...

View Article

Pass Headers and Arguments in UnityWebRequest POST Method Object

How to pass header data and arguments to custom server using web services created?? I knew about web service call using POST method but how to add both arguments and headers in web service call that I...

View Article

WWW Object Timeout not working as expected.

WWW w = new WWW(remotePath + manifestFilename); float timeout = 5f, timetowait = 1f; for (float timewaited = 0; !w.isDone && (timewaited < timeout); timewaited += timetowait) { yield return...

View Article


Super slow network speed in editor with some routers

Hello everyone! I have a very strange problem with web request response times, which is quite hard to explain, so here is my setup. - I am working with Unity 5.4 on an iMac 2015 OSX ( 10.11) - My...

View Article


What is the equivalent of unityWebRequest.downloadHandler.text when using WWW?

I have a plugin that is using UnityWebRequest but it seems that there is currently a few bugs in that new Unity function (at the unity end) so I'm hoping to go back to the legacy WWW. However, I'm not...

View Article

What is a good way to determine if a UnityWebRequest succeeded?

The samples in the [manual][1] show using UnityWebRequest.isError method. Unfortunately (see the [docs][2] for that field) isError returns false when the web server returns an error such as 404 Not...

View Article

HTTPWebRequest.GetResponce 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 Article

UnityWebRequest only does one request at a time

I'm converting some code that was using `WWW` to use `UnityWebRequest`. The code is very simple, just download a png and convert the loaded texture to a sprite. When using `WWW` all requests seem to...

View Article


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

WebGL 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 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

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


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

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

Why is AssetBundle:get_mainAsset thrown when passing an asset bundle as an...

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 Article
Browsing all 387 articles
Browse latest View live


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