On 15 June 2010 13:41, john napiorkowski <jjn...@gmail.com> wrote:
> "Replace any folding whitespace or newlines (CRLF or LF) with a single
> space."
Essentially it means that for whatever length of whitespace, they
should be 'folder' down to only one space.
e.g. CR LF SP SP SP CR LF SP TAB SP -> SP
So whenever you get a length of whitespace, you should replace it all
with a single space.
Hope that helps,
Andy
--
contact: Andrew Chilton
website: http://www.chilts.org/blog/
On 15 June 2010 15:34, john napiorkowski <jjn...@gmail.com> wrote:
> I have code that is working (ie getting a not error response) but I'm
> still a bit confused about the folding rules. It seems like after I
> 'folder down' whitespace in a header value, I have set the request
> header to the 'foldered down' value as well. Does that sound right?
> Because what if for some reason your HTTP header value does require
> extra spaces and so forth? Seems like an edge case to me but I want
> to be sure before I require this in my code.
I think you want to post examples with what you have, what you think
you want and what you ended up with. Also, remember that this is only
for signing the request (ie. when making the
CanonicalExtensionHeaders, so it keeps your real headers intact).
> Additionally, it does seem I need to trim whitespace from the start
> and end of values, otherwise I get errors. Is that intentional or a
> bug (or me doing something wrong?)
That's completely correct, in fact it says so in points 3, 4 and 5 of
that section you linked to. It's probably you doing something wrong.
Take a look at the example on that same page to compare.
Cheers,
--
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.