.NET Standard 2.0
dotnet add package StandardSocketsHttpHandler --version
NuGet\Install-Package StandardSocketsHttpHandler -Version
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="StandardSocketsHttpHandler" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StandardSocketsHttpHandler --version
#r "nuget: StandardSocketsHttpHandler,"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install StandardSocketsHttpHandler as a Cake Addin
#addin nuget:?package=StandardSocketsHttpHandler&version=

// Install StandardSocketsHttpHandler as a Cake Tool
#tool nuget:?package=StandardSocketsHttpHandler&version=


StandardSocketsHttpHandler is a backport of SocketsHttpHandler to .NET Standard 2.0.

Features added to StandardSocketsHttpHandler:

• .NET Standard 2.0 compatibility (.NET Framework 4.7.2 is supported)
• ConnectCallback property - allows configuration of various socket options (TCP Keepalive, etc.)

Features missing from StandardSocketsHttpHandler:

• Windows Authentication (NLTM & Kerberos)
• Operating System proxy settings detection.

Using StandardSocketsHttpHandler:

HttpClient client = new HttpClient(new StandardSocketsHttpHandler())


If you have any question, feel free to contact me.
Tal Aloni

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

  • .NETStandard 2.1

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on StandardSocketsHttpHandler:

Package Downloads

.Net C# library for the new Amazon Selling Partner API


A small networking library to make get & post requests


.NET client for the Tinify API. Tinify compresses your images intelligently. Read more at


Package Description

H.Necessaire.Logging.NewRelic The ID prefix of this package has been reserved for one of the owners of this package by

Exceptionless Integration with H.Necessaire

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on StandardSocketsHttpHandler:

Repository Stars
The official repository for MonoTorrent, a bittorrent library for .NET
Mod, plugin and card manager for games by Illusion that use BepInEx
.Net C# library for the new Amazon Selling Partner API
Version Downloads Last updated 310 5/20/2023 97,558 1/27/2022 35,466 10/7/2021 7,109 6/10/2021 3,740 5/12/2021
2.2.0 188,915 4/14/2020
2.1.0 880 3/24/2020