UnityWebRequest and System Proxy
I have a server running on a machine with *ip = 192.168.79.12*. I have a proxy on a machine with *ip = 192.168.79.24*. On my machine where I'm running a builded Unity app (v2019.2.13f1), I have a...
View ArticleError CS1061: 'HttpWebRequest' does not contain a definition for 'ContentLength'
I'm currently working on a project that has a hololens communicating to a device on a http-server via json post-requests. And all is working fine, until I want to post more than a command to the...
View ArticleAuthorization using OIDC codeflow help
Hi, I am trying to work through how to properly get an authorization method setup and running in Unity utilizing the OIDC codeflow and have run into numerous roadblocks. I have found some other methods...
View ArticleCan't fetch site as string. Unitywebrequest
How it will look in new UnityWebrequest? string result = String.Empty; while (connectionRetries < maxRetries) { WWW www = new WWW(mySite.url); while (!www.isDone) yield return null; if...
View ArticleOIDC Authentication DLL compatability and web browser help
Hi, Got a doozy of one here. I did ask before on a related topic but we have evolved past that one a bit it does seem (original question here:...
View ArticleServer-Side Events with UnityHTTPWebRequests (text/event-stream)
Hello, I'm trying to get a Server-Sent Event working with Unity, but with little luck. So far, this is the code that I have tried to get it to constantly listen and fetch for updates with: public...
View ArticlePOST to HTTP not working
I've been trying to get [this tutorial][1] to work with UnityWebRequest. GET works fine, but when I try to POST I keep getting this error: register.php: Error: Cannot connect to destination host...
View ArticleUnityWebRequest returns different errors for right urls
I'm using UnityWebRequest to download asset bundles from my server. Sometimes the following code returns different exceptions such as Failed to receive data , Cannot resolve destination host, Cannot...
View ArticleMemory leak when HttpWebRequest ssl handshake failed.
As the title, and I find the possible reason in google. (https://github.com/mono/mono/issues/8689) ---------- The solution is in (https://github.com/mono/mono/pull/10254) ---------- I encountered this...
View ArticleUnity - wait for data to load from database
hi, i have some important data i need to load from database . the problem is that i need to load the scene only after the data is loaded . and i didn't find a solution for that. hope anyone can help .
View ArticleHTTP Request - error:UNITYTLS_X509VERIFY_NOT_DONE
The Http request spits out this error: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR, verify result: UNITYTLS_X509VERIFY_NOT_DONE I don't use Unity Web at all, for requests in the RestSharp...
View Articlerecieving push HTTP request in webGL project
A hosting site opens an Iframe for each user session in which a unity 2020.2 webgl project runs, the game generates a score that needs to be sent back to the hosting site along with the user ID (which...
View ArticleProblem deserialize Json api rest
Hi guys I've try to get some api rest value from unity. I've some problem because sometimes is impossible to deserialize the value inside json. In this example i wouldlike to read location.name : FROM...
View ArticleTry catch alternative for HTTP request
Hello, When connecting to a REST api, randomly and in some android devices I get errors when doing a POST. The errors are allways Curl error.... and they usually appear when the users are connected to...
View ArticlePosting JSON data inside a form post urlencodes the json data
I need to send json data to a server that requires 2 parameters in a application/x-www-form-urlencoded format where the second parameter is the json data. I am porting an application from Xcode swift...
View ArticleDownloading multiple textures with a single http request (UnityWebRequest)
Getting a one single texture is not a problem. i've figured out how to do that. But i need a few thousands for which i dynamically generate url.. The problem is that by making an http request for each...
View ArticleUnityWebRequest very slow
We found that when we built a project with Unity 2020.3.22 and noticed that the duration of sending a webRequest and receiving the response is really long! We also tried to build the project with Unity...
View ArticleCapturing and Tracing All HTTP Requests in Unity project
I'm trying to find a way to capture and trace All HTTP Requests made in my Unity project. So far I've tried using SharpPcap and Fiddler Core to capture TCP packets and parse out the HTTP data. I've...
View ArticleHow to insert webRequest data to prefabs before instantiation
I have a script in which I want to inject data to several prefabs before I instantiate them. my idea was to make a "for" loop in which every time I send a url from a url list (string) and inject the...
View ArticleUnityWebRequest Timeouts (some times) but postman success (always)
We have a published game with +50k active users. we are using unity `WebRequest` to get configs from our server, I noticed on the hours of day that requests to our server are high, we encounter a lot...
View ArticleUnity web request sometimes appear Error:System.Exception: Code:0...
My problem is that I use unity web request for hotfix. 90% of the time, players can perform web reqeust normally. Sometimes you will encounter Error:System.Exception: Code:0 Error:Cannot resolve...
View ArticleSecuring HTTP post request
Hello everyone ! I'm making http post request to my server to log the user and then send his bestscore. For that I'm using HTTPS post request. But i'm wondering, if someone decompile my game he will...
View ArticleCurl error receieved when sending post request using UnityWebRequest
I am trying to post request via UnityWebRequest.Post method but got this error **Curl error 1: Received HTTP/0.9 when not allowed** Below mentioned is my code: WWWForm form = new WWWForm();...
View ArticleUnity Web Request: CORS error on WebGL hosted on AWS but works on editor
Hi everyone! As a part of my authentication system in my web gl app, I need to request the Squarespace API to check for orders to confirm that the current user has purchased a subscription. I am...
View ArticleCryptographicException: Input data cannot be coded as a valid certificate.
I am trying to generate **X509Certificate2** certificate from **.pfx** file string Location = "C:/Users/SSB/Downloads/PFX file/CertificatePFX.pfx"; string pass = "0987654321"; X509Certificate2...
View Article,CryptographicException: Input data cannot be coded as a valid certificate.
I am trying to generate **X509Certificate2** certificate from **.pfx** file string Location = "C:/Users/SSB/Downloads/PFX file/CertificatePFX.pfx"; string pass = "0987654321"; X509Certificate2...
View Articlehow to download image and save to specific directory under Assets/.... ???
I am downloading Image from a server and saving to a specific directory under. Assets/... . its working fine in editor but not working on android. I added storage read write permissions but still not...
View ArticleHTTP Cookies not working on iOS,HTTP Cookies and iOS Builds
Hi there, I am currently developing a game which builds to both WebGL and iOS. To remember users, I store an HTTPCookie once a user logs into their account, which has a 14 day expiry. These cookies...
View ArticleAPI pagination
This will return all users from the leaderboard but the API has a limit of 1000 calls. I have in the leaderboard more than 1000 users and it's always increases. I need to save all the users to a list....
View ArticleGraphQL in Unity, is anyone using it?
I'm looking into the possibility to use a GraphQL client in unity but so far I can only find one library in the Asset store (https://assetstore.unity.com/?q=graphql&orderBy=1) and one opensource...
View Article