I'm trying to download a private Google Calendar using a QNetworkAccessManager. Google offers an iCal export function through URLs similar to https://www.google.com/calendar/ical/[MY E-MAIL ADDRESS]/private-[RANDOM STRING OF LETTERS AND NUMBERS]/basic.ics. This calendar can be accessed by other applications through this URL, as described in Google Calendar's documentation.

I use the following code to download a file from a given URL.

Qt Code:
  1. // _naMgr is a function member of type QNetworkAccessManager
  2. connect(&_naMgr, SIGNAL(finished(QNetworkReply*)), this, SLOT(buildCalendar(QNetworkReply*)));
  3. _naMgr.get(QNetworkRequest(_url));
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. void Calendar::buildCalendar(QNetworkReply* reply) {
  2. _content = reply->readAll();
  3.  
  4. // TODO: debug
  5. msg.setText(_content);
  6. msg.exec();
  7. }
To copy to clipboard, switch view to plain text mode 

So then I tried downloading my private calendar through the URL provided by Google. This works fine in Chromium, vanilla Firefox (i.e. no prior session data or cookies) and cURL. However, when I try to access the URL through my little program I am served with this Dutch error page. (It says "Feed Processing Error".)

Is there something specific in Qt's way of handling URLs that may cause Google's server to respond differently?