I need to implement a Google Apps Script app that is used to login on a website and then if the authentication process succeed on that website the user should receive a mess
Fixed this by adding headers option:
var headers = { 'Connection':'keep-alive', 'Content-Type':'application/json;charset=utf-8', 'Accept':'application/json, text/plain, */*', 'Cookie':'...', }