Search Unity

How to stop Unity from auto-cleaning URLS

Discussion in 'Multiplayer' started by bobacupcake, Dec 20, 2018.

  1. bobacupcake

    bobacupcake

    Joined:
    May 11, 2017
    Posts:
    3
    Hello! I'm trying to get twitter authentication working on a WebGL app and I finally managed to get almost everything working. Unfortunately, the one thing that isn't working are my URLs - I need to send two urls within the same url (https://herokuapphere/https://twitterauthenticationhere) but when using WWW, unity is calling some method somewhere that fixes the url, giving me only one / in the second https://

    I have tried to use UnityWebRequest instead, but no matter what I do it gives me unknown errors and I'm not too certain if I switch over to it I won't still have the same problem, as I have gotten everything else working already on WWW. I have also journeyed through the source code and narrowed it down to what I believe is the bottom of this file https://github.com/Unity-Technologi...les/UnityWebRequest/Public/WebRequestUtils.cs but do not know how to stop it from doing this. Furthest I have gotten is inheriting from the WWW and WebRequest classes and trying to go down as far as I could, but I got stopped at the get/set url of the inherited web reset class trying to have the set method directly set the url to the original string, but this just gave me stack overflow errors.

    Any help is greatly appreciated!!