/[dgee]/dgee/cslib/System/Web/HttpRequest.cs
ViewVC logotype

Diff of /dgee/cslib/System/Web/HttpRequest.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by npg, Mon Jul 7 16:23:52 2003 UTC revision 1.2 by csmith, Sun Sep 21 10:55:48 2003 UTC
# Line 0  Line 1 
1    /*
2     * DotGNU ASP.GNU Implementation
3     *
4     * Copyright (C) 2003 DotGNU Project
5     *              
6     *
7     * This program is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20     *
21     * $Revision$  $Date$
22     *
23     * --------------------------------------------------------------------------
24     * Authors:
25     *   Chris Smith
26     */
27    namespace System.Web
28    {
29      using System;
30      using System.IO;
31      using System.Text;
32    
33      public class HttpRequest : IHttpRequest
34      {
35        private Stream _oInputStream;
36    
37        // FIXME This is WRONG.
38        // But it's the only way I can think of getting this to work at the
39        // moment
40        // Chris 22/03/2003
41        //
42        public HttpRequest( string Filename, string Url, string Querystring ) {
43                    
44          _oInputStream = new MemoryStream( Querystring.Length );
45    
46          StreamWriter sw = new StreamWriter( _oInputStream, Encoding.ASCII );
47          sw.Write( Querystring );
48          sw.Flush();
49          _oInputStream.Seek(0, SeekOrigin.Begin );
50        }
51    
52        public Stream InputStream
53        {
54          get {
55            return _oInputStream;
56          }
57        }
58    
59        public string HttpMethod { get { return "POST"; } }
60      }
61    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26