- Home /
WWW.Class and ASP.NET
I am new to unity but familiar with javascript. I am trying to make my unity project communicate with a .net website. I am using the WWW class and using www.text property but i am not sure how i can get the results i'm looking for. Here is what i want to do:
var www = new WWW(url); yield www; print(www.text);
where url = "www.somedomain.com/text.aspx?user=john" and the printed result of www.text be the result returned from the website...like a string saying "Hello John" or something based of the submitted url. When i try to do a www.text on an aspx page, i only get results of HTML & HEAD and not the actual contents of the aspx file.
I hope this makes sense.
Answer by DaveA · Jan 20, 2011 at 08:01 PM
Add http:// as Peter G said, but look at the full text of what comes back. Does it say '404' or 'File not found' or other error that might lead you. If you're getting anything back at all, chances are it's your script. You may need to put a crossdomain.xml file on your server.
Your answer
![](https://koobas.hobune.stream/wayback/20220613100313im_/https://answers.unity.com/themes/thub/images/avi.jpg)