- Home /
WWW Texture Error 302
I am trying to load a www texture but it shows the following error:
You are trying to load data from a www stream which had the following error when downloading.
302 Moved Temporarily
UnityEngine.WWW:get_texture()
$:MoveNext() (at Assets/Ball Time!/Scripts/Update.js:11)
I have tried using LoadImageIntoTexture but it shows the same error. Here is my code:
var url = "http://vegavg.yolasite.com/resources/Update.png";
function Start () {
// Start a download of the given URL
var www : WWW = new WWW (url);
// Wait for download to complete
yield www;
// assign texture
renderer.material.mainTexture = www.texture;
}
Answer by nventimiglia · Nov 08, 2013 at 11:17 PM
I was using a 302 response server side to redirect the client to a profile picture. I noticed I would get an error only when I POSTed the request (used WWWForm or included a byte array). The problem went away when I used a GET request. Your client side code is functionally identical to mine.... What does your server-side code look like ?
Your answer
![](https://koobas.hobune.stream/wayback/20220613080505im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Exception: not implemented? 2 Answers
Screenshot PNG to GUITexture (NONE Texture) 0 Answers
How to Call a Number Using WWW and Actually Do Something With The Number (Please Read) 1 Answer
Host Image/Texture using Unity server, then request it using WWW on client 0 Answers
Blender UV map texture problem? 1 Answer