Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail From: Ting Chang Newsgroups: comp.lang.ruby Subject: How do I read HTTP POST XML sent to CGI? Date: Fri, 29 Apr 2011 15:46:50 -0500 Organization: Service de news de lacave.net Lines: 20 Message-ID: NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1304110581 32532 65.111.164.187 (29 Apr 2011 20:56:21 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Fri, 29 Apr 2011 20:56:21 +0000 (UTC) X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 382401 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:3714 Hello Ruby Masters, I am a ruby newbie and tried to use a http client to send the XML HTTP POST request to my cgi, I thought I can get the text I input in the HTTP POST directly from the $stdin as a string in cgi and extract the data out. but it didn't seem to work. I tried to do $stdin.realines to parse every line of the $stdin but I got nothing out of it. Could anyone please advise ? Thanks, Erick -- Posted via http://www.ruby-forum.com/.