Stream: dotnet
Topic: fhirclient redirects
Brian Postlethwaite (Sep 15 2019 at 18:48):
The webrequest object that is created by the fhir client automatically requests things sent with a redirect, this doesn't therefore fire the OnBeforeRequest option, which therefore doesn't permit the headers to be modified for authentication.
https://docs.microsoft.com/en-us/dotnet/api/system.net.httpwebrequest.allowautoredirect?view=netframework-4.8
And by the way, if you get that back, it's considered an exception.
Last updated: Apr 12 2022 at 19:14 UTC