0

I have to redirect url i.e https://domain.com/micro with email_id=san@gmail.com 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:'san@gmail.com',
        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 .

Santosh Khavekar
  • 597
  • 1
  • 6
  • 22

0 Answers0