Re: XMLRPC Question
- From: Eric Hodel <drbrain@xxxxxxxxxxxx>
- Date: Tue, 8 Jul 2008 03:36:45 -0500
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: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
(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.
.
- References:
- XMLRPC Question
- From: Michael Taras
- Re: XMLRPC Question
- From: Michael Neumann
- XMLRPC Question
- Prev by Date: Re: mysterious memory corruption, very confused
- Next by Date: Floating point calculation problem
- Previous by thread: Re: XMLRPC Question
- Next by thread: Re: XMLRPC Question
- Index(es):
Relevant Pages
|