Saturday, 15 September 2012

Extract cookies info from response headers C# -



Extract cookies info from response headers C# -

i have info available in response header. 1 way come regex it...is there way work around this?

this header info:

headers = {cneonction: close content-length: 87 content-type: application/json;charset=utf-8 date: mon, 11 feb 2013 05:51:37 gmt expires: thu, 01-jan-1970 00:00:00 gmt set-cookie: futwebphishing-123456789=123456aavbc12334564856;path=/;domain=.ea.com;expires=wed, 1...

i want value of futwebphishing..any ideas?

you can string.split(';') value of set-cookie header , find element contains "futwebphishing".

c# cookies http-headers httpresponse httpwebresponse

No comments:

Post a Comment