From: Eric Hodel Date: 2008-07-08T17:36:45+09:00 Subject: Re: XMLRPC Question On Jul 7, 2008, at 15:40 PM, Michael Neumann wrote: > Michael Taras wrote: >> However, when I run that script it errors out on the line with >> server.call in it. The error that it spits out is: >> /usr/local/lib/ruby/1.8/net/http.rb:2019:in `read_status_line': wrong >> status line: "" >> (Net::HTTPBadResponse) >> >> Just from my research, it seems that the error is popping up >> because the >> code is trying to match the xml definition line to an HTTP response >> code, which of course is not working. My guess is that the server is >> not returning any sort of http status, and just the xml, but I'm >> really >> not sure. This is my first time messing with any xmlrpc stuff. > > I think your analysis is correct. The server is returning the plain > XML > and not a HTTP request. Btw, what did you enter in telnet? And what > did > you got as a result from telnet? I encountered the HEAD problem running RubyGems against a gem repository on a misconfigured server. The HEAD request would return ok, but a subsequent GET request would pick up the body that the misconfigured server had left on the socket, so this second request would fail. In this case it would look like the server was sending a body with no HTTP section, but it was really just left on the socket. I've never used XML-RPC.