Contador de Visitas

domingo, 7 de abril de 2019

GET X POST UNITY3D


 404 403 ERROR EM openstreetmap SE USAR POST NO LUGAR DE GET. UNITY3D


 GET


           string url = "https://nominatim.openstreetmap.org/reverse?format=json&lat="+latitude+"&lon="+longitude;
           
            WWW www = new WWW(url);
           
            yield return www;
   
            if (www.error == null)
            {
                Debug.Log(www.text);
            }
            else
            {
                Debug.Log(www.text);
            }    



POST

             WWWForm form = new WWWForm();


             form.AddField("id_usuario", id_Usuario);

            string url = php_path_VL + "status_luz.php";
            WWW www = new WWW(url, form); 


            yield return www;
           
            if (www.error == null)
            {
                Debug.Log(www.text);
            }
            else
            {
                Debug.Log(www.text);
            }    


              


🔝🔝🔝🔝