Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: CookieHeaderValue.TryParse() invalid date time format [298]

$
0
0
When I try to parse next cookie:

.ASPXAUTH=4739F5D3BE64150EBD2259869A846B3BC2F30A09B3666868FFBC5A11435BA1998D7FF3C2AF5E8ACB9E88FCF2C087B0959C53C590583799831582F3AE42F41349FA1589383FF41B2C445E100F56AEE464033F74A992DA4ED11AB99976E1F44E86AAD4571E952AEA3519926F4C58AC1D8748A5C872ECA0A7872E7E2E136F4999EFDC97698C30A2ECD1FD249F2B37EC3A8AE49EDC47DCA7E9C23C84F0D469E0495F51A25485F73CF07405147741D6AC3620; expires=Tue, 31-Jul-2012 20:18:50 GMT; path=/; HttpOnly

using CookieHeaderValue.TryParse, I always get FALSE result. It seems to me, that there is no proper date format acceptable with cookie expire date in System.Net.Http.Formatting/FormattingUtilities.cs
Comments: Where and how are you trying to parse the cookie -- on client side or server side? The cookie header parser supports a variety of date formats -- these ones will work: "Sun, 06 Nov 1994 08:49:37 GMT"* "Sun, 06 Nov 1994 08:49:37" "6 Nov 1994 8:49:37 GMT" "6 Nov 1994 8:49:37" "Sun, 06 Nov 94 08:49:37" "6 Nov 94 8:49:37" "Sunday, 06-Nov-94 08:49:37 GMT" "Sunday, 6-Nov-94 8:49:37" "Sun Nov 06 08:49:37 1994" "Sun Nov 6 8:49:37 1994" "Sat, 08 Nov 1997 09:55:06 -0600" "8 Nov 1997 9:55:6" "Sat, 8 Nov 1997 9:55:6 +0200" We can add support for extra formats but would love to understand the scenario. Thanks, Henrik

Viewing all articles
Browse latest Browse all 7215

Trending Articles


FLASHBACK WITH SIRASA FM AT GALGAMUWA 2022


Mp3 Download: Mdu - Mazola


Imitation gun was fired at motorist in Leicester road-rage incident


Ndebele names


MCKINNEY EMALINE “EMMA” OF WES...


Okra & Motia — The Workshop (Prod by Hammer)


Skint TV teen to be sentenced


Moondru Mudichu 19-09-2017 – Polimer tv Serial


YOSVANI JAMES Arrested by Miami-Dade County Corrections on Jan 10, 2017


Stories • Goddess Stepmom



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>