Beispiel #1
0
 protected virtual IDictionary getHeadersFromForm(WWWForm form)
 {
     try
     {
         PropertyInfo property = form.GetType().GetProperty("headers");
         if (property != null)
         {
             return(property.GetValue(form, null) as IDictionary);
         }
         Debug.Log("couldnt find the 'headers' property on the WWWForm object: " + form);
     }
     catch (Exception ex)
     {
         Debug.Log("ran into a problem transferring headers from WWWForm to the WWW request: " + ex);
     }
     return(null);
 }