Hi, this is the problem:

Using curl i can't update entryes to a specific calendar.


CASE 1:
 headers:                   "If-Match: *",
                                "X-HTTP-Method-Override: PUT",
                                "Content-Type: application/atom+xml",
                                "Accept-Language: es-es,en",
                                "GData-Version: 2",
                                "Authorization: GoogleLogin auth=".$token
curl_setopt($handler, CURLOPT_POST      ,1);
curl_setopt($handler, CURLOPT_POSTFIELDS    ,$datos->saveXML());

RESULT:

HTTP/1.1 302 Moved Temporarily
Expires: Wed, 18 May 2011 21:15:15 GMT
Date: Wed, 18 May 2011 21:15:15 GMT
Set-Cookie: S=calendar=4AlySOdJUfO8fqs6XZ0ujw;Expires=Thu, 17-May-2012 21:15:15 
GMT
Location: 
http://www.google.com/calendar/feeds/1vkj2lnsbvag88eova4k1vh...@group.calendar.google.com/private/full/65h9t0k0tn1u62ccm0gj611hg8_20110518T150000Z?gsessionid=4AlySOdJUfO8fqs6XZ0ujw
Content-Type: text/html; charset=UTF-8
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Transfer-Encoding: chunked

Second petition to redirect URL and cookie seting fail with error 0

No event update





CASE 2:

headers:                   "If-Match: *",
                                "X-HTTP-Method-Override: PUT",
                                "Content-Type: application/atom+xml",
                                "Accept-Language: es-es,en",
                                "GData-Version: 2",
                                "Authorization: GoogleLogin auth=".$token

curl_setopt($handler, CURLOPT_POST      ,1);
curl_setopt($handler, CURLOPT_FOLLOWLOCATION, true); 
curl_setopt($handler, CURLOPT_POSTFIELDS    ,$datos->saveXML());


RESULT:

HTTP/1.1 302 Moved Temporarily
Expires: Wed, 18 May 2011 21:36:29 GMT
Date: Wed, 18 May 2011 21:36:29 GMT
Set-Cookie: S=calendar=McB46TRH9ramypQ17JBQGQ;Expires=Thu, 17-May-2012 21:36:29 
GMT
Location: 
http://www.google.com/calendar/feeds/1vkj2lnsbvag88eova4k1vh...@group.calendar.google.com/private/full/65h9t0k0tn1u62ccm0gj611hg8_20110518T150000Z?gsessionid=McB46TRH9ramypQ17JBQGQ
Content-Type: text/html; charset=UTF-8
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Transfer-Encoding: chunked

HTTP/1.1 200 OK
Expires: Wed, 18 May 2011 21:36:30 GMT
Date: Wed, 18 May 2011 21:36:30 GMT
Set-Cookie: S=calendar=u-9JM8BfJOYgQAmaUqXWlQ;Expires=Thu, 17-May-2012 21:36:30 
GMT
Content-Type: application/atom+xml; charset=UTF-8; type=entry
Cache-Control: private, max-age=0, must-revalidate, no-transform
Vary: Accept, X-GData-Authorization, GData-Version
GData-Version: 2.6
ETag: "EUkJQgFGfCp7JGA6WhJX"
Last-Modified: Wed, 18 May 2011 20:59:32 GMT
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Transfer-Encoding: chunked


o event updated


CASE 3:

 headers:                   "If-Match: *",
                                "Content-Type: application/atom+xml",
                                "Accept-Language: es-es,en",
                                "GData-Version: 2",
                                "Authorization: GoogleLogin auth=".$token
curl_setopt($handler, CURLOPT_PUT      ,1);
curl_setopt($handler, CURLOPT_INFILE    ,$fo);
curl_setopt($handler, CURLOPT_INFILESIZE    ,filesize($file));

RESULT:

Timeout expiration, no event update

CASE 4:
headers:                   "If-Match: *",
                                "X-HTTP-Method-Override: PUT",
                                "Content-Type: application/atom+xml",
                                "Accept-Language: es-es,en",
                                "GData-Version: 2",
                                "Authorization: GoogleLogin auth=".$token

curl_setopt($handler, CURLOPT_INFILE    ,$fo);
curl_setopt($handler, CURLOPT_INFILESIZE    ,filesize($file));

RESULT

bad request (400), no event updated.




Someone can helpe?

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
google-calendar-help-dataapi@googlegroups.com
To unsubscribe from this group, send email to
google-calendar-help-dataapi+unsubscr...@googlegroups.com
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to