3,169 questions
0 votes
0 answers
42 views
Move HTTP request with cert file from nodeJs to .NET not working
I try to move a request with certificate from an old system made with NodeJS to a new system using .NET 8.0. Running the .NET code, however, I always get the following error: The SSL connection could ...
Best practices
2 votes
4 replies
70 views
How do I parse multipart content from an HttpResponseMessage?
I am using HttpClient in .NET 9 to get content that has a JSON part along with a base-64 encoded file. Reading the content as a string, I don't see a clear format that would ensure consistent parsing ...
3 votes
2 answers
160 views
How to make system proxy settings apply to HttpClient.GetAsync() without restarting Windows?
We use the following function to test internet connectivity every 5 seconds. But in some part of the world, this function always returns false. Now, the problem is we can set a proxy server in Windows ...
1 vote
0 answers
64 views
HttpClient OAuth "No user found matching username"
I'm working on a console application to automatically interact with an API that needs and OAuth authorized user with a specific set of claims. If I use a browser to log in with a username and password ...
2 votes
1 answer
120 views
Why am I getting a different HTTP response for a seemingly same request between curl, C# HttpClient Win10 and C# HttpClient Win11
I'm trying to download a webpage from a specific website (Bandcamp). I'm getting different results although the request seems the same: On Windows 10, using a HttpClient in C#: I'm getting "...
4 votes
1 answer
157 views
Can't listen to 'http://127.0.0.100:50001/' with HttpListener on my machine, even though the port does not appear to be in use
My HttpListener for some reason can't listen to prefix http://127.0.0.100:50001/, getting an error Unhandled exception. System.Net.HttpListenerException (32): The process cannot access the file ...
0 votes
0 answers
52 views
.NET MAUI for Android in connection API localhost [duplicate]
I have a problem, I get this error [0:] Connection failure: ERROR {0} when using a connection in a .NET MAUI project for Android. I applied the Microsoft instruction for the case when the API works ...
1 vote
1 answer
101 views
Binding a ViewModel to data from an API
I have a problem because I'm relatively new to this and I'm trying to learn and do things at the same time, and I'm not sure if I'm doing it correctly. I need to get data from my API in the view model ...