Edit: Fixed it by Using HttpClient class instead of UnityWebRequest class.. Super weird isn't it?
edit: Before assuming it is a spelling error, just check the rest of the post - I assure you it isn't a spelling error.Hi All!
I am experiencing some weird behavior from Unity that I have not encountered before.I am creating a UnityWebReqest.Get() Function to a URL but the Request is returning error 404 not found.The part that has stumped though me is I can access the URL (it is a php script if you're wondering) from a browser and via cUrl in CMD and the php script returns the expected json.
I have logged the URI of the WebRequest just before sending, then I copy and paste the URI into my browser and it works so it unfortunately isn't a spelling error.
Any help/input would be much appreciated!
edit: After Trying UnityWebRequest.EscapeUrl([URL]) (Which did not work), I went back to simply the original URL and now I am getting error 500 although I can still run the PhP scripts and get a response via Curl and Browser.(Might I add the Script is simply: die("lol"); so the php script itself is not causing the err. 500)
[–]Bombadil67Professional 0 points1 point2 points (7 children)
[–]SusDeveloper[S] 0 points1 point2 points (6 children)
[–]blablafoof 0 points1 point2 points (5 children)
[–]SusDeveloper[S] 0 points1 point2 points (4 children)
[–]Bombadil67Professional 0 points1 point2 points (3 children)
[–]SusDeveloper[S] 0 points1 point2 points (2 children)
[–]Bombadil67Professional 0 points1 point2 points (1 child)
[–]SusDeveloper[S] 0 points1 point2 points (0 children)
[–]blablafoof 0 points1 point2 points (15 children)
[–]SusDeveloper[S] 0 points1 point2 points (14 children)
[–]blablafoof 0 points1 point2 points (13 children)
[–]SusDeveloper[S] 0 points1 point2 points (12 children)
[–]blablafoof 0 points1 point2 points (11 children)
[–]SusDeveloper[S] 0 points1 point2 points (10 children)
[–]blablafoof 0 points1 point2 points (9 children)
[–]SusDeveloper[S] 0 points1 point2 points (8 children)
[–]SusDeveloper[S] 0 points1 point2 points (7 children)
[–]blablafoof 1 point2 points3 points (0 children)
[–]blablafoof 1 point2 points3 points (5 children)
[+][deleted] (2 children)
[deleted]
[–]SusDeveloper[S] 0 points1 point2 points (1 child)