PDA

View Full Version : JSON response header questions


cabbey
Oct-14-2007, 12:55 AM
In the http headers coming back from the JSON end point there are a couple entries I'm curious about:

Set-Cookie: shott=%241%24B...more chars...K0; expires=Tue, 13-Nov-2007 05:56:36 GMT; path=/; domain=.smugmug.com
ETag: "2e6f1e...more hex...799fb9"

(I've truncated both, just in case they're some variation of my password hash or something.... though I see no resemblance to it.)

What are these? Do I need to preserve the cookie and send it back?

Oh, and one more thing:

Content-Type: text/html; charset=utf-8

The JSON RFC calls for "application/json" there. ;)