Re: HTTP Post
"Rob" <robs-0hTJTfHo8lbrZ44/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <A6CA02B2721F4FE9A2C098A6625DE0D1@maisel> |
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-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org [mailto:fastcgi-developers-bounces+robs=fastcgi.com-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org] On Behalf Of Saikat Kanjilal Sent: Wednesday, October 22, 2008 11:16 AM To: fastcgi-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org 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: [email protected] To: fastcgi-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org 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> _______________________________________________ FastCGI-developers mailing list FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers