You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rodent of Unusual Size <Ke...@Golux.Com> on 1999/06/28 17:13:00 UTC

[Fwd: apache on Win32]

Not acked.

I've never done POST CGI work on Win32.  Would someone who has mind
getting back to this chap?
-- 
#ken    P-)}

Ken Coar                    <http://Web.Golux.Com/coar/>
Apache Software Foundation  <http://www.apache.org/>
"Apache Server for Dummies" <http://Web.Golux.Com/coar/ASFD/>

Re: [Fwd: apache on Win32]

Posted by Rasmus Lerdorf <ra...@raleigh.ibm.com>.
> I've never done POST CGI work on Win32.  Would someone who has mind
> getting back to this chap?

It is quite easy.  There is no mention of which language he wants to do
this in, but regardless, just do something like this:

1. Make sure you have a POST method (check REQUEST_METHOD) 

2. Make sure your mime type is either application/x-www-form-urlencoded or
   multipart/form-data (check CONTENT_TYPE)

3. If your mime type was multipart/form-data you have a file upload on
   your hands and you need to parse the mime headers.

4. Now just read from stdin.  You can get the number of bytes you need to
   read by checking CONTENT_LENGTH

-Rasmus