[FASTCGI] HTTP Post

Rob robs at saccoccio.org
Wed Oct 22 11:34:47 EDT 2008


Instead of parsing the query string, you'll have to parse the POST data on
the stdin stream.  This is standard CGI stuff.  FastCGI doesn't make it any
harder or any easier.  I'm sure you can google piles of CGI examples that
parse form data from stdin.

 

Rob

 

  _____  

From: fastcgi-developers-bounces+robs=fastcgi.com at mailman.fastcgi.com
[mailto:fastcgi-developers-bounces+robs=fastcgi.com at mailman.fastcgi.com] On
Behalf Of Saikat Kanjilal
Sent: Wednesday, October 22, 2008 11:16 AM
To: fastcgi-developers at mailman.fastcgi.com
Subject: Re: [FASTCGI] HTTP Post

 

Rob/Jay:
Thank your very much for your help on this, I would like some clarifications
on some things after reading through both of your emails.

1) Rob mentioned that all of the echo examples in the dev kit currently work
with post requests, my question here is do I still need to decode the data
still using cgicc or some other utility, currently I am using FCGX_GetParam
to retrieve the query string and then parse the key value pairs from that
string, I am guessing I'll have to get rid of all of this code in order to
process a POST request, is that correct

2) Ideally I would like to decode the posted data just using mod_fastcgi and
the devkit and not use any other libs, to both of your knowledge is this
currently possible, I couldn't quite tell from reading both of your emails


Your help is much appreciated.
Thanks

  _____  

From: sxk1969 at hotmail.com
To: fastcgi-developers at mailman.fastcgi.com
Date: Tue, 21 Oct 2008 15:20:15 -0700
Subject: [FASTCGI] HTTP Post

Hi Folks:
I have written some fastcgi C++ code to process get requests which seems to
be working fine, I now need to change this code to process post requests.
Before I begin this endeavor I would like to confirm whether the latest
release of fastcgi for Apache in windows supports http post requests as well
as get requests.  Additionally is there some sample code lying around that I
can look at which processes post requests preferably in a while loop which
keeps accepting http requests.   I would ideally like to do this without
bringing other libraries like gnucgicc into the picture.


Any help would be much appreciated.
Thanks

  _____  

Store, manage and share up to 5GB with Windows Live SkyDrive. Start
uploading now
<http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydriv
e_102008>  

  _____  

Want to read Hotmail messages in Outlook? The Wordsmiths show you how. Learn
Now
<http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cn
s!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20081022/335acaed/attachment.html>


More information about the FastCGI-developers mailing list