From: Sy Ys Date: 2007-05-26T06:01:49+09:00 Subject: Re: Net::HTTP - POST and GET in the same request Enrique Comba Riepenhausen wrote: > Try the following: > > http = Net::HTTP.new('http://www.server.net') > response = http.post('/post.php', 'x=y', {'A'=>'1','B'=>'2','C' => > '3'}) > > puts response.body The x=y become POST variables and the {'A'=>'1' ...} drop out of the equation entirely. Actual code: http = Net:HTTP.new(domain.com) response = http.post(script.asp,'x=y',{'A'=>'1','B'=>'2'}) content = response.body Perhaps I have misapplied it? Note: including http:// in the domain gives a connection error, strangely. -- Posted via http://www.ruby-forum.com/.