Hello, and welcome to the Health developers' forum! >From the message that you posted, I'd think that you'd get a 403:Forbidden rather than a 302:Moved response, since the "auth" in the Authorization header should have a lowercase "a". The ClientLogin service returns it with a uppercase "A", but it's different for the header.
The following worked for me: POST /health/feeds/register/ui/xxx HTTP/1.1 Authorization: GoogleLogin auth=xxx Content-Type: application/atom+xml Content-Length: 197 GData-Version: 2 <?xml version="1.0" encoding="utf-8"?><entry xmlns="http://www.w3.org/ 2005/Atom"><title type="text">Resultat test wiidomo</title><content type="text">Content Resultat test wiidomo</content></entry> The "GData-Version" header is optional, so the message could be minimized further to reduce chance of error. Hopefully this helps with your debugging! Paul (Google) On May 23, 6:25 am, Healthoto <[email protected]> wrote: > Hi all, i've trouble using Google health API :/ I use ClientLogin to > log into GoogleAccounts and it works perfectly fine also i can managed > to do what i want with GoogleAgenda but I can't post new notices to > GoogleHealth here is my post message which seems just as wanted by the > API. Instead of notice posted i've got a 302 moved to the same url... > I very appreciate if someone could help me because the deadline of my > project is close :p > > POSThttps://www.google.com/health/feeds/register/ui/xxxxxxxHTTP/1.1 > Host:www.google.com > User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/ > 2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8 > Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ > *;q=0.8 > Accept-Language: en-us,en;q=0.5 > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 > Keep-Alive: 300 > Connection: keep-alive > Content-Length: 198 > Content-Type: application/atom+xml > GData-Version: 2 > Authorization: GoogleLogin Auth=xxxxxxxxxxxxxxxxxx > > <?xml version="1.0" encoding="utf-8"?><entry > xmlns="http://www.w3.org/2005/Atom"><title type="text">Resultat test > wiidomo</title><content > type="text">Content Resultat test wiidomo</content></entry> > > -- > You received this message because you are subscribed to the Google Groups > "Google Health Developers" 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 > athttp://groups.google.com/group/googlehealthdevelopers?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Health Developers" 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/googlehealthdevelopers?hl=en.
