I use Calendars.load(new URL(URL)) to import an ics calendar into my application.
This works fine with Google calendar, also with ics-files on our own webserver, but not with an ics url of Office365. Then it throws "net.fortuna.ical4j.data.ParserException: Error at line 1:Unexpected end of file"
Strange is that I can paste the same url in a browser, download that ics and put the downloaded filename to Calendars.load(FILENAME) and then it does load the calendar.
I am puzzeled, anyone any idea what is wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use Calendars.load(new URL(URL)) to import an ics calendar into my application.
This works fine with Google calendar, also with ics-files on our own webserver, but not with an ics url of Office365. Then it throws "net.fortuna.ical4j.data.ParserException: Error at line 1:Unexpected end of file"
Strange is that I can paste the same url in a browser, download that ics and put the downloaded filename to Calendars.load(FILENAME) and then it does load the calendar.
I am puzzeled, anyone any idea what is wrong?
Found it!. It seems that my http - URL from office365 redirects to a https - URL.
When I change the http: to https: it works now.
Last edit: Henk 2015-02-06