MalformedHeaderValue for Date using UTC

10 views
Skip to first unread message

Andrew Chilton

unread,
Jan 26, 2011, 5:17:15 PM1/26/11
to gs-dis...@googlegroups.com
Hi everyone,

As part of my AwsSum Perl library (which already talks to many web
services including Amazon S3), I'm developing a plugin for the Google
Storage service.

However, I keep getting a MalformedHeaderValue for the Date field when
I use UTC yet GMT and +0000 work fine.

* "Wed, 26 Jan 2011 21:41:10 UTC" - fails
* "Wed, 26 Jan 2011 21:41:10 GMT" - ok
* "Wed, 26 Jan 2011 21:41:10 +0000" - ok

I think this is slightly bizarre though now that I have a workaround
I'm happy. However, I was wondering if someone could explain why UTC
(which makes perfect sense) doesn't work with GoogleStorage?

Cheers,
Andy

--
contact: Andrew Chilton
website: http://www.chilts.org/blog/

Jerjou Cheng

unread,
Feb 1, 2011, 4:21:36 PM2/1/11
to gs-dis...@googlegroups.com
Hm... so, it looks like the HTTP spec kind of agrees with you.


That is, while it encourages the use of numeric timezones, it does say that servers must interpret timezone names. Universal Time is specified as UT rather than UTC (in RFC 822), but a quick test indicates that we don't accept UT either. I'll file a bug.

Thanks for letting us know,
-Jerjou


--
You received this message because you are subscribed to the Google Groups "Google Storage for Developers" group.
To post to this group, send email to gs-dis...@googlegroups.com.
To unsubscribe from this group, send email to gs-discussio...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gs-discussion?hl=en.




--
Developer Programs Engineer
Google Storage
Reply all
Reply to author
Forward
0 new messages