Repository navigation
Replies: 1 comment 1 reply
|
After further investigation, yes, the <?xml version="1.0" encoding="utf-8" ?>Or the So I guess that if before, with the old http client we were not sending it, and we had no complaints. And now we are sending it, and we have complaints, we can safely disable the header and call it a day |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello! Thanks for maintaining this nifty piece of software.
TL;DR: ktor sets the
Accept-Charsetheader, which causes the Exchange Web Services instance I'm interfacing with to refuse to respond. Any chance of not setting that header?For several months now, I've been getting a notification that a subscribed calendar was producing
403 Forbiddenerrors. Today, I noticed the calendar hadn't updated in quite a while, and dug deeper.The org where my calendar is hosted uses Microsoft Exchange Web Services, unfortunately I don't know which version.
This is the stack trace from ICSx5 upon newly subscribing to the calendar in question:
Using PCAPdroid, I captured the HTTPS session for the feed validation during subscription. This resulted in the following headers:
After playing around with various user-agent strings I found in other discussions, I tried running plain curl within termux, and it worked; so the UA wasn't the issue. I could also access the .ics from various browsers in private mode. What didn't work was setting the above headers in a curl command, so I successively removed headers until it worked, narrowing it down to the
Accept-Charset: UTF-8header. This apparently bothers the Exchange server so much it refuses to cooperate.It seems that ktor sets the header
Accept-Charset: UTF-8by default, if not overridden otherwise.Is there any chance of not setting the
Accept-Charsetheader at all? According to the note in RFC 9110 §12.5.2 it is deprecated.Thanks for considering this!
All reactions