示例#1
0
        public Request(IDictionary<string, string> parameters, byte [] PostData)
        {
            this._cookiejar = new SorentoLib.FastCgi.CookieJar();
            this._queryjar = new SorentoLib.FastCgi.QueryJar();

            this._environment = new SorentoLib.FastCgi.Environment (parameters);
            this._postdata = PostData;

            this.ParseCookies();

            this.ParseHttpQueryString();
        }
示例#2
0
        public Request()
        {
            this._cookiejar = new SorentoLib.FastCgi.CookieJar();
            this._queryjar = new SorentoLib.FastCgi.QueryJar();
            this._environment = new SorentoLib.FastCgi.Environment();

            if (this._environment.RequestMethod == "POST")
            {
                Stream stream = Console.OpenStandardInput();
                this._postdata = ReadBinary(stream, Int32.Parse(this._environment.ContentLength));
                stream.Close();
            }

            this.ParseCookies();

            this.ParseHttpQueryString();
        }