|
Re: 100-continue support: msg#00016cms.opengroupware.xmlrpc.devel
> >> I didn't try any XML-RPC client so far, but basic authentication seems > >> just fine. > > But still avoiding ngobjweb and going straight into ZideStore? > Using Apache if you specify HTTP/1.0. Notably it still seems to have a > ~2s delay (some sort of timeout) prior the post arrives at the server. Yes, basic-auth seems to be working from mono; and there is no delay - it succeeds or fails very quickly. public class Client { static public void Main() { HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://kohocton/RPC2"); /* setup authentication */ request.PreAuthenticate = true; NetworkCredential creds = new NetworkCredential("adam", "******", null); request.Credentials = creds; /* setup request paras */ request.ProtocolVersion = HttpVersion.Version10; request.PreAuthenticate = true; request.Method = "POST"; request.ContentType = "text/xml"; request.AllowWriteStreamBuffering = true; /* send response */ Stream stream = request.GetRequestStream(); XmlTextWriter xWriter = new XmlTextWriter(stream, Encoding.ASCII); xWriter.WriteStartDocument(true); xWriter.Flush(); xWriter.Close(); /* receive response and parse */ HttpWebResponse response = (HttpWebResponse)request.GetResponse(); StreamReader input = new StreamReader(response.GetResponseStream()); input.Close(); response.Close(); } } -- OpenGroupware.org XML-RPC xmlrpc@xxxxxxxxxxxxxxxxx http://mail.opengroupware.org/mailman/listinfo/xmlrpc |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Appointment Fetch With PHP: 00016, Adam Williams |
|---|---|
| Next by Date: | Base64 encoding project.newDocument?: 00016, ogoxmlrpc |
| Previous by Thread: | Appointment Fetch With PHPi: 00016, Adam Williams |
| Next by Thread: | Base64 encoding project.newDocument?: 00016, ogoxmlrpc |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |