I have to redirect url i.e https://domain.com/micro with [email protected] as body through post/get request.
I know that We can do it by passing parameter to url with get method.but I dont want to pass in url for that I have pass as body.
this is my endpoint,
var body1 = JSON.stringify({
email_id:'[email protected]',
link_id:'34sd'
});
function read(request,respone){
response.statusCode = 307;
response.writeHead(307,{Location: 'https://domain.com/micro'});
response.end(body1);
}
Please can you suggest me on same .