Fast Fin Tech
Fast Fin Tech
CC#
Created by Fast Fin Tech on 12/20/2022 in #help
❔ Server rejects my HttpClient request when requested from linux, but not from windows or WSL
I'm using a c# HttpClient to make a login request, impersonating a browser's login to a website. The application running this is .net 7, in a linux container. The login succeeds when run on a windows computer or WSL, but the is met with 403 (Forbidden) when the container is run on Ubuntu, all popular versions, on a number of cloud providers. Something about my code runs differently on a linux machine, but not on my local WSL.
6 replies