1.2k questions
1.4k answers
361 comments
339 users
There is 2 ways to accomplish redirecting to another URL from within a channel.
2 ways to do this:
Using html metadata:
qie.postMessageResponse('<html><meta http-equiv="refresh" content="0; url=https://www.qvera.com"/></html>');
Using html header status.
var redirectUrl = "https://www.qvera.com"; var response = 'HTTP Status: 303 \r\n' + 'http.header.Location=' + redirectUrl + '\r\n'; qie.postMessageResponse(response);
var redirectUrl = "https://www.qvera.com";
var response = 'HTTP Status: 303 \r\n' +
'http.header.Location=' + redirectUrl + '\r\n';
qie.postMessageResponse(response);
See also:
Handling HTTP requests and responses
Posting Responses via qie.postMessageResponse() in a channel that uses an HTTP Listener source node