I'm using Apache Client to send HTTP/1.0 request and receive the response in java.
Now I met the problem: the header of response contains the property, "Date" which could be those three formats:
Sun, 06 Nov 1994 08:49:37 GMT
// RFC 822, updated by RFC 1123Sunday, 06-Nov-94 08:49:37 GMT
// RFC 850, obsoleted by RFC 1036Sun Nov 6 08:49:37 1994
// ANSI C's asctime() format
My problem is that I can use SimpleDateFormat
to parse one type of those three formats but I can not find a good solution to parse ANY/ALL of those three formats.
(But HTTP/1.0 protocol requires to support all those formats, I can only support one of them)
Thanks indeed