Todd, I'm experiencing the exact same issue. I only get back one array in the headers object with the name set-cookie, and it only contains a single value. This must be a server-side bug, because I looked at the response sent by the Google web server, and it indeed only contains a single array with a single value. Are you still experiencing this problem also?
-GeekLad On Sep 7, 10:51 pm, Todd <[email protected]> wrote: > I'm trying to write a gadget for a site that requires user > authentication and uses cookies. As a result, I need to read the "set- > cookie" headers sent by the website after a POST request with the > login details. However, it appears only the last "set-cookie" sent > (and therefore only one cookie) is accessible. Here's an example > response function: > > function response(obj) { > alert(obj.headers["set-cookie"]); > } > > I'm assuming this is because the API replaces "set-cookie" for each > cookie header sent. Multiple cookies are sent by the service I'm > trying to access, and I can only read the last cookie, thus I am > unable to hold any sort of user session. Is there a solution to this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iGoogle Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Gadgets-API?hl=en -~----------~----~----~----~------~----~------~--~---
