From: 7stud -- Date: 2011-05-01T07:35:51+09:00 Subject: Re: How do I read HTTP POST XML sent to CGI? Ting Chang wrote in post #995897: > Sorry about misleading, I think my problem is that I cannot get any POST > data in my CGI, I tried your suggestion above and looks like the POST > data did not come through. > > do you know what's possibly the reason? > Do you have to use that request software? You can easily test whether your server's cgi gateway is working by using a ruby script to send the post request to your cgi script: require 'net/http' require 'uri' url = URI.parse('http://www.somehost.com/some_page') data = { 'url' = 'http://www.some_site.com' } response = Net::HTTP.post_form(url, data) puts response.body -- Posted via http://www.ruby-forum.com/.