Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

WWW doesn't work, and crossdomain works?!???

Discussion in 'Multiplayer' started by light766, May 2, 2015.

  1. light766

    light766

    Joined:
    Apr 23, 2009
    Posts:
    250
    In the editor, the login works, all the loading of images works, but once i export the game, the error i get is:
    Failed to download "the page.php"

    at first i thought it was my crossdomain.xml but it seems that it fully works since when i remove the crossdomain, i get a complete different error saying i am missing the crossdomain, so it isn't that.

    Nothing of the php pages are loading once built, i am using Unity5 latest version, personal edition, is there something i am missing to do?

    P.S. I am building it as a webplayer, using Unity5, also tried reinstalling and everything.
     
  2. Javier-Maria

    Javier-Maria

    Joined:
    Mar 16, 2015
    Posts:
    6
    Same issue, I suggest including the PHP thing in the title for clarity.

    I am Building a WebPlayer using Unity5 Pro. On Internet Explorer I get "Failed to download http://url.../my_script.php". The same login script (and every other php in the project) works perfectly in Firefox and Chrome (npapi enabled).
     
  3. light766

    light766

    Joined:
    Apr 23, 2009
    Posts:
    250
    Hmm, i only tried on chrome and firefox, both seem to not work for me, anyone know why this is happening? is it unity? or is it something we need to open? because it was working before the upgrade.
     
  4. light766

    light766

    Joined:
    Apr 23, 2009
    Posts:
    250
    Okay, what i found out is that when i have a WWWForm in the code, it doesn't seem to work, but when i take it off, it does, is there a new type of WWWForm were supposed to use? or does it need extra firewall settings?


    I found a solution to Chrome, FireFox, and Safari... but for some reason it doen't work on IE

    add this to your field and it should work on those prowswers, for some reason it NEEDS a binnary inside it
    so just add this to your form:

    formvariable.AddBinaryField("binary", new byte[1]);
     
    Last edited: May 12, 2015
  5. Javier-Maria

    Javier-Maria

    Joined:
    Mar 16, 2015
    Posts:
    6
    I am already using the binary field trick for all my WWWForms, but IE still fails. If I build with 4.6.X everything works perfect. Thankfully this is not a critical error for my project because it was made and planned to work with 4.6, but I'd like to be able to port it to U5.
     
  6. light766

    light766

    Joined:
    Apr 23, 2009
    Posts:
    250
    Hmm, I seem to be having this error with Internet explorer as well.. anyone know a fix?