cancel
Showing results for 
Search instead for 
Did you mean: 

Web client procedure: How to get multiple values of 'Set-Cookie'-attribute?

4,880

I need to get a cookie as a result of authentication.
The Web-server returns a few pieces of cookies. The example below shows the result of the Wfetch.exe-utility:
Web client procedure How to get multiple values of SetCookieattribute

When I run (CALL client_authentication...) the authentication procedure in ASA12 (ASA16):
CREATE PROCEDURE client_authentication(
urlSpec LONG VARCHAR,
certif LONG VARCHAR)
URL '!urlSpec'
TYPE 'HTTP:POST:text/plain'
CERTIFICATE '!certif'
SET 'REDIR (COUNT = 0)';

then I get only one cookie:

Web client procedure How to get multiple values of SetCookieattribute

Is it possible to get all the 'Set-Cookie'-attribute values ​​in the ASA12?

Accepted Solutions (1)

Accepted Solutions (1)

VolkerBarth
Contributor

Yes, it's also documented in the "What's New" section...

Answers (1)

Answers (1)

jack_schueler
Product and Topic Expert
Product and Topic Expert

I have confirmed this behaviour. It looks like only the last fragment is included in the result set. This may be an oversight (i.e., bug).

0 Kudos

Thanks.
It would be nice, if the 'Set-Cookie'-attribute would have the following format for the next build of ASA12/16:

Set-Cookie: <name>=<value>[; <name>=<value>]...
[; expires=<date>][; domain=<domain_name>]
[; path=<some_path>][; secure][; httponly]
jack_schueler
Product and Topic Expert
Product and Topic Expert
0 Kudos

That's up to the web server you connect to (and http://tools.ietf.org/html/rfc6265#section-4.1.2).

What we need to do is make sure that you see all of the Set-Cookie headers.

0 Kudos

Already there "EBF 21834: 12.0.1 SP65 Build 3967", but:
Location = ... jsessionid=FEBF61E1302AAFBEB9392B05CFE19B7E.jvm35
Set-Cookie = TS95cb66=108aec2a8a669bbd0d07348607cc68adfb88548baba2456b524bedb460ac0ec5a2f79a5f8564792ff7ee38e2; Path=/