3 messages in com.googlegroups.google-calendar-help-dataapiRe: couldn't get calendars list - 302...| From | Sent On | Attachments |
|---|---|---|
| pacozzz | 13 Dec 2007 17:07 | |
| Austin (Google) | 13 Dec 2007 19:04 | |
| pacozzz | 14 Dec 2007 04:07 |
| Subject: | Re: couldn't get calendars list - 302 and 301 moved errors![]() |
|---|---|
| From: | pacozzz (serg...@gmail.com) |
| Date: | 12/14/2007 04:07:16 AM |
| List: | com.googlegroups.google-calendar-help-dataapi |
Hi Austin,
after I wrote here redirecting stopped. I don't know is it good or not because I have no minds how to reproduce the redirecting cases again to fix it. But now I know the receipt for fixing - thank you.
I can't use exiting libraries because I need my program in native c++ because of some reasons, so it's a hard way and I need to go through this.
Anyway thank you for help, I hope it solves the problem if it appears again.
Best regards, Sergey
On Dec 14, 6:04 am, "Austin (Google)" <api....@google.com> wrote:
Hi,
When you are submitting request to GData server sometimes you do get a redirection (302), the idea that you need to follow this redirection and submit the same headers with the correct auth token to the redirect URL.
One thing you might consider is using one of our client libraries which handle these redirections under the hood, for more information and download please go to this page:
http://code.google.com/apis/gdata/clientlibs.html
Hope it helps, Austin
On Dec 13, 2007 5:07 PM, pacozzz <serg...@gmail.com> wrote:
Hi,
from the http://code.google.com/apis/calendar/developers_guide_protocol.html document the next step after authorisation is the getting of calendars list and it's a problem for me.
As I'm not using cURL or any other library (wininet only) all manipulations are under my control. So after I got "auth" I send a "GET" request to http://www.google.com/calendar/feeds/default/allcalendars/full and the answer is 302 or 301.
If I create new HTTP connection - the answer is 301, If I do not create new connection and use current that were used for authentication (HTTPS) I get "302 moved".
Yes I know about I should repeat the request with "X-If-No-Redirect" added to header and get cookies but I'm still getting 302 or 301 error in this case...
please any minds and help.. the solving this problem took already 3




