emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: google-calendar.el blocked?
Date: Sun, 19 Aug 2012 16:59:40 +0100	[thread overview]
Message-ID: <87r4r298k3.fsf@pank.lan> (raw)

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

                 reply	other threads:[~2012-08-19 15:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r4r298k3.fsf@pank.lan \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).