u01jmg3 / ics-parser

Parser for iCalendar Events • PHP 8+, 7 (≥ 7.4), 5 (≥ 5.6)
MIT License
453 stars 145 forks source link

#311 - Outlook ICS failed to open stream: HTTP request failed! #312

Closed roelVerdonschot closed 2 years ago

roelVerdonschot commented 2 years ago

Set default user-agent and the option to configure a different user-agent.

u01jmg3 commented 2 years ago

Can you give some explanation regarding why you've chosen this particular user-agent?

I'd prefer not to set a default value because others may require something different.

And what about the comment @annervisser left suggesting that the issue lies with the host header and not the user-agent?

roelVerdonschot commented 2 years ago
  1. The user agent was suggested by gafderks
  2. Why didn't u mention this before I created this PR?... Anyway I removed it..
  3. Don't know anything about host header, setting the user-agent solves the issue for me