© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
❔ HttpClient Request headers automatically capitalizing.
C
C# / help
3y ago
✅ Add OAuth 2.0 in HttpClient Request Headers
C
C# / help
3y ago
HTTPClient
C
C# / help
2y ago
❔ HttpClient Error
C
C# / help
3y ago