Getting HTTP Headers in C# is SUPER easy!

  Рет қаралды 17,435

Nick Proud

Nick Proud

Күн бұрын

Пікірлер: 31
@flashdancer42
@flashdancer42 7 ай бұрын
I am trying to get on C# (been programming PHP+etc on/off for 20yrs+) and when I try to think about what to learn to code, it's always something network related so these are really nice and it's good that you show stuff instead of just typing and telling "that's that" - I actually learn something. :) More network C# related stuff gogo!
@nickproudprogrammer
@nickproudprogrammer 7 ай бұрын
Amazing feedback thank you so much.
@wayahedia9989
@wayahedia9989 2 жыл бұрын
the music.. kill it!
@УсманГалеев
@УсманГалеев 10 ай бұрын
Great! I tried to find this info in Russian, but I couldn't. You said me understandable than my own-language bloggers. GET my like and thank you!
@GorgeGeorg
@GorgeGeorg 2 жыл бұрын
I tried this for restSharp headers, but trygetvalue isn't available?
@guillermomazzari4983
@guillermomazzari4983 2 жыл бұрын
Thanks for this video! I really love the way you explain every detail! By any chance do you have a tutorial on how to build a microservice architecture using HttpClient?
@nickproudprogrammer
@nickproudprogrammer 2 жыл бұрын
Good video idea!
@guillermomazzari4983
@guillermomazzari4983 2 жыл бұрын
@@nickproudprogrammer Looking forward to it!!!
@nelsonrivers8546
@nelsonrivers8546 3 ай бұрын
Can I get the server hostname from an HttpResponse header, and if so, how ?
@nelsonrivers8546
@nelsonrivers8546 3 ай бұрын
I was able to extract a specific header called "Server" from the Headers collection of a HttpResponse object. However, I didn't see the TryGetValues( ) function that Nick Proud discussed in this video. I was using Visual Studio Professional version 17.11.4 at the time. However, I still did find this video useful. I just had to use a foreach (var header in response.Headers) loop, and put an if statement within it to extract the "Server" header value, then "break" from the loop, once I obtained it. It worked. Thank you Nick Proud for this video.
@saivaraprasadarao6990
@saivaraprasadarao6990 Жыл бұрын
can you please help me with filtering out the 2nd index values from the headers .. for example from Pragma i need to 2nd index value
@nickproudprogrammer
@nickproudprogrammer Жыл бұрын
Sorry not sure I'm understanding. Could you elaborate?
@rakeshmanthri2025
@rakeshmanthri2025 4 ай бұрын
Nice Video… Did you act in One piece as KURO
@davitshermadini7775
@davitshermadini7775 2 жыл бұрын
Hello, I am going to get data from response headers ---> "location" value, but it is always null, and when I check it from google chrome there always is some data on the same link, Can u help me?
@nickproudprogrammer
@nickproudprogrammer Жыл бұрын
Hmm. Is 'location' case sensitive? If not tried already, try 'Location'
@ARMY-ATINY
@ARMY-ATINY 2 жыл бұрын
you are a great teacher. thank you, can you make a video about how to mimic the browser requests to any website(network in developer tools ) or resources to do it using c# or book and again thank you.
@nickproudprogrammer
@nickproudprogrammer 2 жыл бұрын
Thanks! I'd be happy to provide more guidance. Just need to understand what you need a bit more. Are you trying to do GET requests to a url? Or are you trying to use C# to open the browser and navigate to a particular site?
@ARMY-ATINY
@ARMY-ATINY 2 жыл бұрын
Get requests with httpclient class and be able to handle it.
@nickproudprogrammer
@nickproudprogrammer 2 жыл бұрын
Check this out. Should be what you need kzbin.info/www/bejne/j5qQgGB-d6yDm7c
@atulyasrivastava9009
@atulyasrivastava9009 2 жыл бұрын
Hi Sir, I really praise u in the end of every video that u had made me learn something cool. Thanks for that. Btw I am facing issue in passing header in post api with c# in my console application. With this Video i got to know how to read the header but still figuring out how to send one to an api for the response. I know u would love to do a Video on this too. I will be waiting for that sir. Thanks!
@yeso8205
@yeso8205 2 жыл бұрын
I found long living httpclient has unmanaged memory leak problem..... no clue to fix it....
@nickproudprogrammer
@nickproudprogrammer 2 жыл бұрын
Are you using idisposable?
@mrt7948
@mrt7948 2 жыл бұрын
iam also.coming to this video from that intro. many thanks.
@andreyzlot
@andreyzlot 8 ай бұрын
Thanks
@ThiagoTarantoAlvim
@ThiagoTarantoAlvim Жыл бұрын
Awesome video... but you could reduce de music volume, it is a little bit annoying kkk but the content is great! ;-)
@flow_down_iana
@flow_down_iana 2 жыл бұрын
Hey, everything is great. I love your explanation… But!!! I am Ukrainian. (Not native speaker) And because of the music it’s difficult to listen your important speech… could you please make it like 70% your voice and 30% of background music :)))
@bradleyhodgins6354
@bradleyhodgins6354 5 ай бұрын
Love the video, but don't need the background music please.
@TheBishopOfBarton
@TheBishopOfBarton 10 ай бұрын
Please - no music!
@TheBishopOfBarton
@TheBishopOfBarton 10 ай бұрын
Otherwise very useful.
@mohammedalagab4323
@mohammedalagab4323 2 жыл бұрын
can you please stop using music
@nickproudprogrammer
@nickproudprogrammer 2 жыл бұрын
Definitely. In fact, I had a lot of feedback on this and since then, my videos no longer have background music 👍
Http Get And Post In C#
19:37
Nick Proud
Рет қаралды 101 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
RestSharp and C# is HTTP requests on easy mode. Find out why.
11:25
C++ Super Optimization: 1000X Faster
15:33
Dave's Garage
Рет қаралды 334 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 319 М.
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 649 М.
Fetch Headers and Why They Matter
15:58
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 9 М.
Understand your C# queries! IEnumerable & IQueryable in explained
11:28
tutorialsEU - C#
Рет қаралды 42 М.
Middleware Pattern For HttpClient With Delegating Handlers
17:07
Milan Jovanović
Рет қаралды 17 М.
Don't throw exceptions in C#. Do this instead
18:13
Nick Chapsas
Рет қаралды 266 М.
The Dictionary Data Structure in C# in 10 Minutes or Less
10:20
IAmTimCorey
Рет қаралды 43 М.