Skip to main content

All Questions

0 votes
1 answer
357 views

How to download a file from TLS1.3 enabled web site on Windows 10 using webclient or httpclient in C#

I am trying to download a file from UK government official site using WebClient and HttpClient in C# Following is the site which i guess is using TLS1.3 https://www.gov.uk/government/publications/the-...
Zaveed Abbasi's user avatar
1 vote
1 answer
171 views

HttpClient.PostAsync not complete with wrong DNS server , ios app frozen

Steps to Reproduce Setting wrong DNS at Ipad wifi setting (ex: 5.6.7.8) Run App, Request HttpClient.PostAsync App Frozen Expected Behavior Response Error in Catch() Actual Behavior App Frozen ...
user9133238's user avatar
1 vote
1 answer
787 views

HttpClient, WebClient or HttpWebRequest takes 90 seconds to read a file on the first attempt, after that it runs quickly

I have an application which runs on a PC and downloads files from a web server running in an embedded device which is connected to the PC using RNDIS over USB. The RNDIS connection looks like a ...
snaddenm's user avatar
  • 105
0 votes
1 answer
723 views

Xamarin native shared project HttpClient does not work

I have created Xamrin native shared project supporting Android and iOS mobile platforms. I want to consume REST services in both mobile apps. If I make request to REST API using HttpClient then it ...
user2618875's user avatar
2 votes
0 answers
1k views

System.OutOfMemoryException when uploading a large file (~600MB) using .NET 4.0 & HttpClient

I am getting this error only on my local workstation and prod server. In Dev and Cert it is working fine. local workstation - 20 GB memory, Win 7 64 bit, IIS Express, VS 2013 dev, cert & ...
iRamesh's user avatar
  • 383
0 votes
1 answer
7k views

Why is System.Net.Http HttpClient encoding my request URL?

I use the HttpClient in System.Net.Http to make requests to a web service as below: using (var client = new HttpClient()) { using (var response = client.GetAsync(url).Result) { var ...
Jimbo's user avatar
  • 23k
1 vote
0 answers
589 views

Transfer Session cookie from one Request to another in ASP.NET

I have 3 different Servers. On Server A I have a webpage pageA.aspx On Server B I have a webpage pageFrame.aspx On Server C I have a Web API controller controllerC.cs On Server A I have another page ...
user2227484's user avatar
0 votes
1 answer
1k views

Adding System.Net.Http.dll reference to windows phone 8 project throwing error

I am beginer to windows phone 8 development. I want to use HttpClient in my app it throws an error to add namespace for that. I am unable to include System.net.http.dll reference to my project when i ...
user3252627's user avatar
0 votes
1 answer
432 views

Request content from httpclient to WebApi changing between client / server

I'm working on a solution for authenticating WebApi requests with HMAc (Similar to this) Part of this, looks at the outbound requests Content, and generates an MD5 hash of it (this is included as ...
Alex's user avatar
  • 38.6k