From: Peer Allan Date: 2007-05-25T01:21:04+09:00 Subject: Problem with Net/HTTP Hi all, I am running into a serious problem with a custom library I am building in Ruby. Basically I am writing a Ruby interface to a custom web service that we have here at our company. The problem I am running into is that I am posting the XML document to the service and it is responding, but net/http is telling me there is no body (response.body.empty? => true). If I post to the service from a web form or using PHP I get a response. This only seems to happen when there is an error with the request, for example the request is missing an postal code. The service returns an XML doc with the errors but net/http won't let me see it. A 200 status code is returned and I can not find no obvious difference between the headers of a successful and failed request. I can't even find a way to see the raw response the net/http received so I can check to see if it is just parsing it incorrectly. I am open to any suggestions at this point as this is a big problem if I can't get this working. Thanks Peer -- Posted via http://www.ruby-forum.com/.