1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
571 views
by brandon-w-8204 (34.1k points)

1 Answer

0 votes
 
Best answer

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

 

See also:

Handling HTTP requests and responses

Posting Responses via qie.postMessageResponse() in a channel that uses an HTTP Listener source node

by brandon-w-8204 (34.1k points)
edited by rich-c-2789
...