Trying to use the xojo.net.httpsocket to establish long-term async communication to a service, but I’m getting this error from the server that I’m talking to:
Failed: Expected HTTP chunked encoding for long running commands
From what I can see, the HTTP 1.1 support was added to xojo.net.httpsocket sometime in 2015, but I can’t find a Xojo equivalent to the SendChunked property in the provider’s C# sample code shown below.
EXCERPT FROM C# SAMPLE:
HttpWebRequest request = HttpWebRequest.Create(“https://TheirServiceURLl”) as HttpWebRequest;
request.Method = “POST”;
request.ContentType = “text/xml”;
request.SendChunked = true;
Is there any Xojo equivalent to specify SendChunked? I have MBS plugins and believe it could also be done using CURLS, but I haven’t found any sample code for doing this there either…
Created as case # 46316 and I’ll probably make it my #1 request tonight to move up the list at least a little bit (maybe some others will show it some love, too).
Successfully got this working using the MBS CURLS plugin. Hopefully support for chunked transfers will be available natively in Xojo at some point in the future, but until then, MBS saves the day again!