Unable to call external API (IBM Watson) via HTTP request?
I'm trying to call IBM Watson's API to perform sentiment analysis from my Unity project, using the WWW library. This is my current code: string uri =...
View ArticleUnityWebRequest: strange responseCode values, eg -1202
We see a few HTTP requests come back with strange **responseCode**. I don't have a repro, so all i know is that when cast to an int (from a long), we sometimes get values like **-1202**, **-1200**, and...
View ArticleIOS HTTP GET with Authorization Header not being sent
Hi! I have got a problem connected to sending HTTP GET request with authorization header on iOS platform. In the editor and on Android it's fully working, but on iOS it is working nondeterministically....
View ArticleUnityWebRequest timeout not containing
I am trying to use Mapbox but I am receiving this error in the code provided in the SDK. namespace Mapbox.Unity.Utilities { using System; using UnityEngine.Networking; using System.Collections; using...
View ArticleWWW class and UnityWebRequest no longer working in Unity 2017.3.0
Hi guys, I've been tasked with porting one of our apps from Unity 5.6.0 to Unity 2017.3.0. This app runs on the following platforms: - Windows Standalone - Windows Universal Store App - iOS - and...
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 ArticleHTTP GET Method in C# Unity 3D - How to target specific text or header
Hi everyone, I'm currently new here in Unity community so please go easy on me. I have problem with WebRequest in Unity its working but catches all html tags, meta date ext. So my question is is there...
View ArticleSend POST request to HTTPS
Hello, I'm sending my post request to **HTTPS** page `https://example.com/index.php?fc=module&module=mydemomodule&controller=display` this way: IEnumerator CaptureScreenshotAndPost() { byte[]...
View ArticleHow to upload a file from Android to my own website?
I have my own website and am trying to upload a file to it from an Android unity app. This is my code: using System.Collections; using System.Collections.Generic; using UnityEngine; using...
View ArticleCannot get data from HTTP Response using UnityWebRequest in Unity
Hey Unity PROs, I am beginner here! I am trying to use the **Microsoft Bing Text to Speech API** in Unity, this API requires an **AccessToken** that will be passed in the request header. to get this...
View ArticleUriFormatException: Invalid URI: Invalid port number for VirtualBox server...
I've set up a server using a VirtualBox and determined that the address of that server is using IPv6. The address itself is http://[fe80::a00:27ff:fefe:70c5] and I can type that into a browser just...
View ArticleUnityWebRequest object downloadhandler.text not returning same/all data...
WWWForm form = new WWWForm(); form.AddField("username", "admin"); form.AddField("password", "pass"); form.AddField(key1, value1); form.AddField(key2, value2); form.AddField(key3, value3); string...
View ArticleHow do I make this GET request in Unity?
curl 'https://api.sketchfab.com/v3/models/{UID}/download' -H 'authorization: Bearer {INSERT_USER_OAUTH_ACCESS_TOKEN}' I'm trying to make this API call but it doesn't appear to be working. I essentially...
View ArticleUnity to PHP to XML / Upgrade issues
0 down vote favorite I had a Windows app developped with Unity that would use a XML file as a Database. To write on this file, I have a simple PHP file on a server where the XML is. To summarize, it...
View ArticleHow to make an HTTP request in a menu item ?
So what I'm trying to do is to have a menu command that will send a GET request to an API. The problem I've run into is that menu item requires the function to be static, while making an http request...
View ArticlePOST JSON method does not work when project has been exported to WEBGL and...
I have a database set up on firebase and when i run my game in the unity edtitor and as a standalone exported Windows .exe file, the call gets made correctly to the database and JSON data gets posted...
View ArticleUse WWW with a proxy
I currently have customers who are using a proxy in their company and thus can't use my Unity app, since I need to make HTTP requests. Since most posts I see about this subject are rather old, I was...
View ArticleDownload 6 textures from the web, create a cubemap and set it as skybox in...
In my app I need teh user to be able to download already prepared 360 photos, cut into 6 pieces. After that, the cubemap must be made, and loaded as a skybox, so that the user could explore 360 degrees...
View ArticleUnity returns NULL when I try to send a HTTPS request
I'm struggling to send a HTTPS request on Unity for about 3 days. I did search a lot about it and what I understand is that Mono doesn't support SSL validation. There is a solution for this on the...
View ArticleLogin cookies
I have created a simple login with Unit, php and mysql for Android devices. However I am facing difficulties to understand how cookies work and are the cookies the right way to persist the...
View Article