Esempio n. 1
0
        public static string FormString(this HttpRequest httpRequest)
        {
            var sb = new StringBuilder();

            if (httpRequest.HasFormCount())
            {
                foreach (var kv in httpRequest.Form)
                {
                    sb.Append($"{kv.Key}={kv.Value};");
                }
            }
            return(sb.ToString());
        }
Esempio n. 2
0
        public static string FormKeysString(this HttpRequest httpRequest)
        {
            var sb = new StringBuilder();

            if (httpRequest.HasFormCount())
            {
                foreach (var key in httpRequest.Form.Keys)
                {
                    sb.Append($"{key}={httpRequest.Form[key]};");
                }
            }
            return(sb.ToString());
        }