100-continue support
Adam Williams <[email protected]>
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
I saw the change log entry -----
NGObjWeb
SOPE/skyrix-sope/NGObjWeb
v4.2.300
WOSimpleHTTPParser.m:
added very simple support for 100-continue to make the Mono HTTP client
happy
---- and figured I'd give it a try; but got the same thing as before.
Curious if anyone else has tried it (and if this is in
opengroupware-sope-4.2-ogo082.i386.rpm, published on 02/18/2004 so I'd
assume so)?
awilliam@estate2 mono]$ mono XMLRPCtest.exe
Unhandled Exception: System.Net.WebException: Error getting response
stream ---> System.Exception:
at System.Net.WebConnection.HandleError()
at System.Net.WebConnection.ReadDone()
at System.MulticastDelegate.invoke_void_IAsyncResult()
at System.Net.Sockets.Socket+Worker.End()
at System.Net.Sockets.Socket+Worker.Receive()
in <0x000ee> System.Net.WebConnection:HandleError
(System.Net.WebExceptionStatus,System.Exception)
--- End of inner exception stack trace ---
-------Compilation-----------------
mcs -r /usr/lib/CookComputing.XmlRpc.dll XMLRPCtest.cs
opengroupwareServer.cs
-------XMLRPCtest.cs---------------
using System.Net;
using System;
class Test {
opengroupwareServer ogo;
static void Main() {
opengroupwareServer ogo = new opengroupwareServer("adam", "*******",
"SKYRiX");
Console.WriteLine(ogo.getHostName());
}
}
-------opengroupwareServer.cs-----------
using CookComputing.XmlRpc;
using System.Net;
using System;
[XmlRpcUrl("http://kohocton/RPC2")]
class opengroupwareServer : XmlRpcClientProtocol
{
public opengroupwareServer(string userName, string password, string
realm) {
this.Credentials = new NetworkCredential(userName, password, realm);
}
[XmlRpcMethod("system.getHostname")]
public string getHostName() {
return (string)Invoke("getHostName");
}
}
--
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc