emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* google-calendar.el blocked?
@ 2012-08-19 15:59 Rasmus
  0 siblings, 0 replies; only message in thread
From: Rasmus @ 2012-08-19 15:59 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

For some time google-calendar.el hasn't been working for me.  I looked
into it, and it seems the user-agent has been blocked cf. the output
below: 

Has anyone else experienced this?  Or how to fix it?  (I.e. how to
change the user-agent of url-retrieve or something similar?)

Thanks,
Rasmus

#+NAME: Debugging 
#+BEGIN_SRC emacs-lisp
(defun my-url-retrieve (url)
  (with-current-buffer (url-retrieve-synchronously url)
    (buffer-substring (point-min) (point-max))))

(my-url-retrieve "http://www.google.com/ig/api?weather=London")
#+END_SRC

#+RESULTS: Debugging
#+begin_example
HTTP/1.1 403 Forbidden
X-Frame-Options: SAMEORIGIN
Content-Type: text/html; charset=UTF-8
Date: Sun, 19 Aug 2012 15:49:35 GMT
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Cache-Control: no-cache, no-store, must-revalidate
X-Content-Type-Options: nosniff
Server: igfe
Content-Length: 970
X-XSS-Protection: 1; mode=block

<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 403 (Forbidden)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}
  </style>
  <a href=//www.google.com/><img src=//www.google.com/images/errors/logo_sm.gif alt=Google></a>
  <p><b>403.</b> <ins>That's an error.</ins>
  <p>Your client does not have permission to get URL <code>/ig/api?weather=London</code> from this server.  <ins>That's all we know.</ins>
#+end_example






-- 
This space left intentionally blank

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-19 15:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-19 15:59 google-calendar.el blocked? Rasmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).