From 10f0df55979d856be41f80130bab5a0536ab4e23 Mon Sep 17 00:00:00 2001 From: Jonathan Goode Date: Fri, 10 Feb 2023 11:23:04 +0000 Subject: [PATCH] Add Outlook note to README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 4c58f26..836b76d 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,16 @@ composer test // 3 => string 'TZID=America/Detroit:20160409T090000' (length=36) ``` +### Are you using Outlook? + +Outlook has a quirk where it requires the User Agent string to be set in your request headers. + +Using the `httpUserAgent` argument when creating your ICal object solves this problem. + +```php +$ical = new ICal($url, array('httpUserAgent' => 'A User Agent')); +``` + --- ## When Parsing an iCal Feed