WWW : Waiting for response from server

Hi All,

i am working on a version check API but somehow i am not able to get any response back(no error no result)

Here is the code

IEnumerator CheckVersion()
		WWWForm form = new WWWForm();
		string url = "http://game.com/versioncheck.php";
		WWW w = new WWW(url, form);
		Gtex.text = "Waiting for response....";
		yield return w;
		string versionResult = w.text;
		if(versionResult != "1")
			Debug.Log("We got response but version didn't match");
			Debug.Log("version matched test succesfull");
		if(w.error != null)
			Debug.Log("There was an error checking the version: " + w.error);
	void OnGUI()
		if(GUI.Button(new Rect(10,10,100,40),"Login"))

i googled the same issue and what people pointed out is, if you don’t give a yield then it gives this particular error, but i don’t think i a m making that mistake here.

I also checked the API call outside unity just to check if there was something wrong with the API itself, but it wasn’t the case it is giving me the right response outside unity.

Can someone please help me out with this.

P.S : this is not a cross domain issue : i already crosschecked that

i figured out the issue, there was nothing wrong with the code the issue was coming because the crossdomain.xml file placed on the server had some BOM characters which was causing this issue.