From: Jim Menard Date: 2001-12-21T23:34:12+09:00 Subject: [ruby-talk:29227] HTTP POST I'm having a problem with HTTP POST under Ruby 1.6.4 and 1.6.5. The code data = "?hello=world" Net::HTTP.start(HOST, PORT) { | http | response, = http.post2(PATH, data) puts response.body } always prints an empty body. The response['content-type'] is what I expect ("text/html"). However, GET works. When I execute the following code, I see the expected response body text. data = "?hello=world" Net::HTTP.start(HOST, PORT) { | http | response, = http.get2(PATH + data) puts response.body } I know that the Net::HTTP module is under transition. Is this expected behavior? Jim -- Jim Menard, jimm@io.com, http://www.io.com/~jimm/ "Mind you, deep in the IBM VM operating system source we once found a comment that said 'remember to collect laundry on way home'." -- Alan J. Flavell in comp.lang.perl.misc