Add support for binary data over HTTP
oddstr13 opened this issue · 6 comments
This is a feature request, not a bug
On 12 Jan 2016 20:24, "Odd Stråbø" [email protected] wrote:
The HTTP API http://wwwcomputercraftinfo/wiki/HTTP_%28API%29 does not
currently support reading or posting binary data@Vexatos https://github.com/Vexatos convinced me to put this here
—
Reply to this email directly or view it on GitHub
#81.
@oddstr13 Dan just said - this is for bug reporting. If you want to post a suggestion, I advise you post here instead. Additionally, this has been suggested before multiple times and the current solution is to just use base64 or another method of encoding the payload data.
Also, only people with push access can set labels on issues by default.
@apemanzilla using an alternative encoding might be an acceptable solution in some cases, but only when you control the server side. It is not practical in most cases.
When it comes to the suggestion forums, this particular enhancement has been suggested several times over the years;
- February 2013 - slight modification to HTTP (affects returned file handle only)
- September 2014 - Binary HTTP handles
- April 2015 - HTTP Enhancements
Last one also suggest some other nice additions to the HTTP API.
Not sure if @dan200 has seen any of these threads, but he has not replied to them.