© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
16 replies
UnemployedNinja

Different HttpClient headers

When I make an HTTP request in my browser (Chrome), I get different response headers than I do in my program using
HttpClient
HttpClient
with a
HttpClientHandler
HttpClientHandler

I'm using all the exact same headers, including the same cookies, and making the request to the same URL - I also have redirects disabled

Why could this be?
Chrome shows me 11 headers, whereas C#'s
HttpClient
HttpClient
only shows me 6 headers from the exact same request
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ HttpClient Request headers automatically capitalizing.
C#CC# / help
3y ago
✅ Add OAuth 2.0 in HttpClient Request Headers
C#CC# / help
3y ago
HTTPClient
C#CC# / help
2y ago
❔ HttpClient Error
C#CC# / help
3y ago