Exemple #1
0
        public static void AddAndroidHeaders(this HttpWebRequest httpWReq, ClientInformation paramClientInformation)
        {
            httpWReq.Headers["User-Agent"] = "Dalvik/1.6.0 (Linux; U; Android 4.0.4; GT-I9100 Build/IMM76D)";
            //httpWReq.Headers.Add("Accept-Encoding", "gzip");
            httpWReq.Headers["X-Android-Device-Manufacturer"] = paramClientInformation.GetAndroidDeviceManufacturer();
            httpWReq.Headers["X-Android-Device-Model"]        = paramClientInformation.GetAndroidDeviceModel();
            httpWReq.Headers["X-Android-Device-Product"]      = paramClientInformation.GetAndroidDeviceProduct();

            httpWReq.Headers["X-Android-Device-Is-GoogleTV"] = "0";
            httpWReq.Headers["X-Android-SDK"]     = paramClientInformation.GetAndroidSdk().ToString();
            httpWReq.Headers["X-Android-Release"] = paramClientInformation.GetAndroidRelease();
            httpWReq.Headers["X-Android-Application-Version-Code"] = paramClientInformation.GetAndroidApplicationVersionCode().ToString();
            httpWReq.Headers["X-Android-Application-Version-Name"] = paramClientInformation.GetAndroidApplicationVersionName();
        }