Questions tagged [unitywebrequest]
97 questions
0
votes
1 answer
Problems writing a UnityWebRequest.Post
I am not sure how to write a correct UnityWebRequest.Post from these information :
curl --location --request POST 'https://url.com/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic…

Lucas Martinez
- 3
- 1
0
votes
1 answer
How to post grade on an assignment using canvas LMS API and UnityWeb Request or similar?
I am working on a gamification project whose goal is to build a WebGL game with Unity and post the final score as a grade on an assignment using the canvas LMS API. I need to know two things: how to authenticate using a bearer token for now (I know…

user16346610
- 1
- 1
0
votes
1 answer
UnityWebRequest data is blank
I am using a flask server and having Unity access it. Testing it in Postman (with platform:test) gives me ImmutableMultiDict([('platform', 'test')]) (result of request.form in Flask) which works. But when unity makes a post request (code provided),…

Jahill
- 78
- 1
- 7
0
votes
1 answer
How to get Audio track from JSON file in server?
Hello :) in my Project I want to get Audio track from a JSON file file which locate it in a Server.
my Audio. mp4 doesn't want to play, I don't know why ,, I made the same script for video and it works good just I thought if I have only the sound so…

Bolino
- 13
- 5
0
votes
1 answer
UnityWebRequest cannot receive data in some urls response
I have some problems with UnityWebRequest.
I have several URLs to communicating with my server.
Some URLs working fine expectly and other few URLs not working expectly.
It's a weird thing that there is no error in any unity and my server. My server…

Josh lee
- 1
- 2
0
votes
1 answer
not able to download file with size more than 63kb using UnityWebRequest
i am try to download asset bundle from an url but the request keep on cancelling after downloading 63kb. Can anyone explain to me why this may be happening?
My Code :
public IEnumerator DL()
{
string downloadlink =…

Ravi Kundu
- 45
- 1
- 5
0
votes
2 answers
Cannot POST data using UnityWebRequest in Unity, it gives Error: HTTP/1.1 500 Internal Server Error
I cannot POST data in Json Format using UnityWebRequest in Unity. It gives error
Error: HTTP/1.1 500 Internal Server Error
I am using Webservice made in ASP.NET Core and hosted locally on IIS Express.
Here is my C# Code in Unity
public class…

Junaid Pathan
- 3,850
- 1
- 25
- 47
0
votes
1 answer
Unity IOS app can't use UnityWebRequest to call self signed certificate HTTPS
i used the window and android both can call the self signed certificate HTTPS, but ios not (Unable to complete SSL connection) . Any setting or coding can fix it?
public IEnumerator SetGroupID(int id) {
string url = AppConfig.APIDomain +…

sopapok
- 3
- 3
0
votes
1 answer
UnityWebRequest doesn't work in Oculus Go
I have a question about UnityWebRequest when using in Oculus Go. UnityWebRequest work well in UnityEditor. However, UnityWebRequest doesn't work in Oculus Go... It seems just no connect to http url because there is no log in putty.
IEnumerator…

BMO
- 3
- 2
0
votes
1 answer
No data passed using UnityWebRequest POST
I'm trying to retrieve some data from a MySQL database through php POST method to Unity.
But somehow, when I use the UnityWebrequest the post variable is always empty.
My C# script:
using System.Collections;
using System.Collections.Generic;
using…

Mark
- 132
- 3
- 13
0
votes
1 answer
Unity 5.6.7 - UnityWebRequest SSL/HTTPS
While using Unity 5.6.7, I'm having issues accessing a secured server through HTTPS on Android.
javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
This is not an issue…

Gorilako
- 11
- 2
0
votes
1 answer
Downloading images and save to device
I having some issues here with UnityWebRequest.
I tried to download and save the jpeg, but it seem that the download is a success but it does not save it, and does not show me Log from "saveToFile" function.
Did I did something wrong?
Here are my…

Guan Sheng Wong
- 37
- 6
0
votes
1 answer
UnityWebRequest does nothing on IL2CPP Build
I've been trying to simply call an api on an android build supporting 64 bit (IL2CPP build) and the UnityWebRequest class didnt seem to work. It's being called via a simple ui button click. It hits the webRequest.SendWebRequest(); and nothing…

Ashetynw
- 198
- 1
- 12
0
votes
0 answers
UnityWebRequest query ! cant pass variable from Unity to PHP
Unity Code
Scorestr not passing to php variables only $qfName is being saved in query. I am new to both php and unity. maybe explained or simple answers would be appreciated. :)
public GameObject gamectrl;
public void CallRegister()
{ …

Fahad Nadeem
- 47
- 7
0
votes
1 answer
UnityWebRequest filling up Memory when using it to load images repeatedly
Im using UnityWebRequest to load an image.
This is the code.
UnityWebRequest uwr;
StartCoroutine(LoadImageCorroutine());
IEnumerator LoadImageCorroutine()
{
using (uwr =…

mllhild
- 67
- 7