get session cookie from REST API login page
Hello.
Please provide us your app public link.
Describe steps to reproduce this problem.
Also it would be fine if you describe what do you expect and what is realy have.
Thanks & regards.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello.
Please provide us your app public link.
Describe steps to reproduce this problem.
Also it would be fine if you describe what do you expect and what is realy have.
Thanks & regards.
Hi Donald,
Have you been able to resolve this issue?
Hello,
Do you need our help?
I'm having the same problem (ticket 7329)
Hi Neel,
The problem you have faced with is a restriction of set "Set-Cookie" header.
You can find the reason of this problem here: http://stackoverflow.com/questions/74...
But you can receive this header using server code.
Here is steps to do it:
create server code.
Simple tutorial how to use it: http://devcenter.appery.io/tutorials/...
populate this code with following JS code:
precode
var sendURL = "https://btcunifi.raderhosting.com:8443/login?login=login&username=xxxx&password=yyyy"
var XHRResponse = XHR.send("POST", sendURL,
{
"status": "sent"
}
);
var goalCookie = "no defined"
if(XHRResponse.headers["Set-Cookie"])
goalCookie = /unifises\=([^;]+)/gi.exec(XHRResponse.headers["Set-Cookie"])[1];
response.success({"unifises": goalCookie}, "application/json");
/code/pre
Save and test it.
Regards