jorgediz / xmlrpcnet

Automatically exported from code.google.com/p/xmlrpcnet
0 stars 0 forks source link

Internal server error viewing with HTTP GET #83

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I view my XML-RPC server with HTTP GET, on Mono, XmlRpcListenerService 
errors out with InvalidOperationException on the line 
"RequestContext.Response.StatusCode = 500;", saying "Header cannot be changed" 
or something to that effect.

This occurs after it has sent approximately 5KB of the HTML showing the method 
names, parameters, etc. So it's already half done when this occurs.

Any idea?

Original issue reported on code.google.com by xoc...@gmail.com on 1 Feb 2011 at 5:09

GoogleCodeExporter commented 8 years ago
Looking at it, by the way, sometimes it even gets past writing 
"CookComputing.XmlRpcV2 0.0.0   .NET CLR 2.0.50727" -- I see this in the web 
browser. So it's far along before it has this error.

Original comment by xoc...@gmail.com on 1 Feb 2011 at 5:11

GoogleCodeExporter commented 8 years ago
One possible reason...

          httpResp.StatusCode = 200;

at the end of HandleGET in XmlRpcHttpServerProtocol.
This would need to go earlier on in the function, such as after setting 
ContentType, perhaps.

Original comment by xoc...@gmail.com on 1 Feb 2011 at 5:27

GoogleCodeExporter commented 8 years ago
Moved setting of StatusCode as suggested - revision 191

Original comment by ChasC...@gmail.com on 13 Mar 2011 at 3:24