I have a webserver that return response as,
HTTP/1.1 302 Found
message://ActualMessage
This works well for UI Clients such as Android and iOS, but how can I handle this case on a web browser?
For example, a browser request to
GET https://myserver.com HTTP/1.1
And a response looks like,
HTTP/1.1 302 Moved Temporary
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="message://ActualMessage">here</a>.</h2>
</body></html>
Unfortunately can't change the server to not return that response. I am not seeing a way to how to get this response from the browser. A native WebView can easily handle that response.
from Handle custom protocol response in js
No comments:
Post a Comment