❔ 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.
4 Replies
Fast Fin Tech
Fast Fin TechOP2y ago
Base container image used is mcr.microsoft.com/dotnet/runtime:7.0 Here are images of the results. On the left is the container running, with successful login, on ubuntu on WSL on my windows development computer. On the right is the container running with login rejected on Ubuntu 22.04. Both containers were started with exact same command.
Fast Fin Tech
Fast Fin TechOP2y ago
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server