From: Enrique Comba Riepenhausen Date: 2007-05-26T06:36:57+09:00 Subject: Re: Net::HTTP - POST and GET in the same request On 25 May 2007, at 23:27, Sy Ys wrote: > Enrique Comba Riepenhausen wrote: >> Try this: >> http = Net::HTTP.new('domain.com') >> response = http.post('/script.asp', 'x=y') >> content = response.body >> >> The {} sets header fields if you take a closer look at the post >> request itself you will see them there. > > Now you've confused me. The above example doesn't even contain the > variables I want to send as POST. I need to send x=y as GET and a=1 as > POST. Get it? > > In other words: I need to POST 'a=1' to 'script.asp?y=z' Okay, then change the following: response = http.post('/script.asp?y=z', 'a=1') Sorry for the confusion.... ;)