httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rasmus Lerdorf <>
Subject Re: [Fwd: apache on Win32]
Date Mon, 28 Jun 1999 17:57:28 GMT
> 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


View raw message