Can Send chunked?

Trying to use the 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 sometime in 2015, but I can’t find a Xojo equivalent to the SendChunked property in the provider’s C# sample code shown below.

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…

Any help appreciated!

HTTP/1.1 wasn’t added to this socket, it came with it from day one. It is one of the advantages over the Classic Framework httpsocket.

That said, we do not have a way to specify chunked data transmission.

You should file a feature request!

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).

Oops–make that case #46315 !

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!