Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
 
					
				
		
 
					
				
		
 
					
				
		
Follow below process. 1) Pass the credential to the string column of the 1st tRestClient (login page). 2) Capture the cookie using "((java.util.Map>)globalMap.get("tRESTClient_1_HEADERS")).get("Set-Cookie").get(1)" 3) In 2nd tRestClient component go to advance properties and add the below header properties. Name Value "Cookies" ((java.util.Map>)globalMap.get("tRESTClient_1_HEADERS")).get("Set-Cookie").get(1) you should be able to connect using above process
 MPande161166009
		
			MPande161166009Thanks. It helped, just one mistake it is "Cookie" not "Cookies".
 powerchip
		
			powerchip
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Thanks, in my case y have multiple cookies
//Get Cookie
//System.out.println(((java.util.Map)globalMap.get("tRESTClient_1_HEADERS")).get("Set-Cookie"));
//System.out.println(((java.util.Map)globalMap.get("tRESTClient_1_HEADERS")).get("Set-Cookie").toString().replace("[","").replace("]","").replace(",",";").replace(";","\n"));
String str[] = ((java.util.Map)globalMap.get("tRESTClient_1_HEADERS")).get("Set-Cookie").toString().replace("[","").replace("]","").replace(",",";").split("; ");
//System.out.println(str.length);
String out = "";
for(int index = 0; index < str.length; index++){
//System.out.println(str[index]);
if(str[index].startsWith("ABC") || str[index].startsWith("DEF")){
out = out + str[index] + ";";
}
}
output_row.cookie = out;
