- Home /
Failed downloading http with WWW on Internet Explorer
I have a webplayer app that regularly talks to the server that's hosting it via WWW calls to a PHP page. It seems to work okay on Chrome and Firefox but I get back an error message on Internet Explorer that says "Failed downloading http://host.domain.com/server.php"
When I check the requests being sent out via Fiddler the WWW request doesn't even show up(it does on the other browsers). Here's an abbreviated version of the code(which is being called in a MonoBehaviour coroutine)
public static IEnumerator SendRequestCoroutine()
{
WWWForm formData = new WWWForm();
Hashtable cookieInfo = formData.headers;
// ... Populate form data here and update cookie info here
// Create the web request
WWW wwwRequest = new WWW("http://host.domain.com/server.php", formData.data, cookieInfoHashtable);
// Wait until request finishes
yield return wwwRequest;
// Read response/error data
if (wwwRequest.error != null)
Debug.LogError(wwwRequest.error);
}
Any ideas what I could be missing for IE?
Do you have any proxy set up in IE? $$anonymous$$aybe this is causing issues? You can also do a simple test - obtain IP address for this host, try to ping it using Ping class and see if it's possible.
@ArkaneX I think that I remember hearing that the Ping class doesn't work for WebPlayer builds due to the security sandbox. I haven't done anything different based on browsers.
I just did a quick test and Ping works without problem in WebPlayer (in IE10)
If you hit the URL directly by entering it into the IE address bar, do you get the response you expect? (I mean, try hitting the url without the webplayer.) The webplayer uses IE to actually do all it's downloads, so, provided you have access rights to the server Unity should be able to fetch the page. Alternatively, and I am no IE10 expert, maybe there is some setting needed in that browser to permit plugins to make requests.
Your answer
Follow this Question
Related Questions
Any caching options available for things dynamically loaded by WebPlayer? 0 Answers
Webplayer can not read file from website 1 Answer
Unity Webplayer Game freezes after loading on IE 1 Answer
WWW responseHeaders not giving me cookie in web-player, but does in editor 1 Answer
What kind of error handling does the WWW class have? 1 Answer