Top "System.net" questions

System.

Send a file via HTTP POST with C#

I've been searching and reading around to that and couldn't fine anything really useful. I'm writing an small C# win …

c# http post system.net
What is IP address '::1'?

I was playing with sockets on local machine with no network connection. See below: IPAddress address = IPAddress.Any; // doesn't work …

c# ip system.net
Checking if HttpStatusCode represents success or failure

Let's suppose I have the following variable: System.Net.HttpStatusCode status = System.Net.HttpStatusCode.OK; How can I check if …

c# .net system.net
Usage of EnsureSuccessStatusCode and handling of HttpRequestException it throws

What's the usage pattern of HttpResponseMessage.EnsureSuccessStatusCode()? It disposes of the Content of the message and throws HttpRequestException, but I …

.net httprequest system.net
From where do I reference a missing assembly (System.Net.Http.Formatting)?

In my Visual Studio 2013 RC project, I'm getting this err msg: "The type 'System.Net.Http.Formatting.MediaTypeFormatter' is defined …

.net-assembly visual-studio-debugging visual-studio-2013 system.net mediatypeformatter
Update app.config system.net setting at runtime

I need to update a setting in the system.net SectionGroup of a .Net exe app.config file at runtime. …

c# .net app-config system.net
Converting the content of HttpResponseMessage to object

My Question: How do I do this? So, I hadn't touched anything .Net in about 6 years until this week. There's …

c# win-universal-app system.net
What does Dns.GetHostEntry Method(String) actually do?

I can't find any proper description in the documentation for what this actually does. Does it check for the existence …

c# .net dns host system.net
C# Read (not write!) string from System.Net.Http.StringContent

I have what seems like it should be a simple question, but I can't find an answer to it anywhere. …

c# asp.net-web-api system.net
How do I clear System.Net client DNS cache?

I'm using the .NET WebRequest while changing my HOSTS file. I'm observing that System.Net doesn't honor those changes - …

c# .net dns system.net hosts-file