I'm working on a project in which my server API was not designed to use HTTP to send and receive information from clients. Instead, it uses a custom-made protocol, with its own format, encoding and compression algorithms (obviously not supported by modern browsers).
I'm thinking about developing a web application to interact with the server, so I was wondering if there's a way to make a dynamic asynchronously request with JavaScript without following the HTTP standard and then parse all requests and responses myself using JavaScript.
I tried looking up on normal AJAX (XMLHttpRequest
) and even came across this question, but after reading the reference on the function I quickly discovered that not only there are parameters that you cannot change, but you can't delete elements such as the header itself (METHOD Resource HTTP/1.1
, etc.).
That being the case, I would like to confirm if there's absolutely no way of interacting with the API as it is with a web application.
Thanks in advance.