passing cookies information using sendajax function

18 views
Skip to first unread message

Hasan Naqvi

unread,
Feb 19, 2015, 8:10:02 PM2/19/15
to casp...@googlegroups.com
Hi!

 trying to pass cookie information like this and unable to achieve the target to fetch information. I am not sure whether I am doing right or wrong. Any idea to dealt this issue will be appreciated


    var tempJsession={"JSESSIONID":"s1~F9AB1D2C94C85E3082E0AA86183796A7"};
    var jsonObject = casper.evaluate(function(url, jSession) {
        try {
            return JSON.parse(__utils__.sendAJAX(url, 'GET', tempJsession, false));
        } catch (e) {}
    }, {
        url: url,data:tempJsession
    });

Regards,
/Hasan
Reply all
Reply to author
Forward
0 new messages