You need to sign in to do that
Don't have an account?
SunilKumar.ax1648
Cookie header is not set in Apex class
Hi All,
I have a apex class, in this class i have rest based web services i am login on diffrent web server, i am able to login there and getting success response. but in cookie i am not geting header values. i request you to please if any one have any idea so plase help the same
Thanks in advance
Http http2 = new Http();
HttpResponse res2 = http2.send(req2);
System.debug(methodName+ ' :: 2 res2 :: '+res2 );
System.debug(methodName+ ' :: 2 res2 body :: '+res2.getBody()+ ':: status :: '+res2.getStatusCode()+' :: :: '+res.getHeader('Set-Cookie')); // this will print null
Thanks & Regards
Sunil Kumar
I have a apex class, in this class i have rest based web services i am login on diffrent web server, i am able to login there and getting success response. but in cookie i am not geting header values. i request you to please if any one have any idea so plase help the same
Thanks in advance
Http http2 = new Http();
HttpResponse res2 = http2.send(req2);
System.debug(methodName+ ' :: 2 res2 :: '+res2 );
System.debug(methodName+ ' :: 2 res2 body :: '+res2.getBody()+ ':: status :: '+res2.getStatusCode()+' :: :: '+res.getHeader('Set-Cookie')); // this will print null
Thanks & Regards
Sunil Kumar
Gaurav Nirwal
Try this code
SunilKumar.ax1648
Thanks for your replay but this is not work for my code.