Hi, The following two headers are returned in the response of an API call. My requirement is to extract the value of second "Set-Cookie" header.
1) Set-Cookie: GDCAuthTT=; path=/gdc; expires=Sat, 03-May-2014 12:59:37 GMT; secure; HttpOnly 2) Set-Cookie: GDCAuthSST=xxxxxx; path=/gdc/account; expires=Wed, 18-Jun-2014 12:59:37 GMT; secure; HttpOnly However, "get-property('transport','Set-Cookie')" expression always returns the value of first "Set-Cookie" header. If we try to remove one "Set-Cookie" header and call the above expression again, it returns null. Apparently, this happens due to ESB maintaining the header values in a hashmap as mentioned in the below thread. http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-4-0-3-eating-2-3-cookies-td21841.html Is there a fix or a workaround to this issue(we are currently using the esb 4.8.1)? Thanks & Regards Rasika -- View this message in context: http://wso2-oxygen-tank.10903.n7.nabble.com/How-to-extract-multiple-transport-headers-with-the-same-key-tp97658.html Sent from the WSO2 Development mailing list archive at Nabble.com. _______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev