private void PostUrlEncodedParams(HttpWebRequest request, KalturaParams kparams)
        {
            byte[] buffer;
            string paramsString = kparams.ToQueryString();

            buffer = System.Text.Encoding.UTF8.GetBytes(paramsString);
            request.ContentType   = "application/x-www-form-urlencoded";
            request.ContentLength = paramsString.Length;
            Stream requestStream = request.GetRequestStream();

            requestStream.Write(buffer, 0, buffer.Length);
            requestStream.Close();
        }