
Adds WebClient.Encoding property to specify charset for string-based methods.
Features
- HTTP: Added WebClient.Encoding property to specify charset for string-based methods.
- HTTP: Added DownloadProgressChanged/UploadProgressChanged events do WebClient class.
- HTTP: Added HttpRequest.AutomaticDecompression property.
- HTTP: HttpResponse.ContentLength returns -1 to indicate 'value not specified'.
- HTTP: Added null value check to HttpRequest.Headers setter.
- HTTP: HttpResponse.ContentLength property is now set to -1 (not specified) when receiving automatically decompressed content.
- HTTP: HttpResponse.GetResponseStream() handles unsupported Content-Encoding values now.
- SSH: Added SshPublicKey.LoadPublicKeys method that supports loading OpenSSH's 'authorized_keys' files.
- Cryptography: Enhanced custom CRL downloader for .NET Compact Framework to handle all 3xx redirect codes.
- Cryptography: Enhanced Certificate.LoadDer to handle files with multiple certificates (loads the first one).
- Cryptography: Added 'params' to CertificateInfo.SetExtendedUsave/SetAlternativeHostnames methods.
- Common: Added workaround for broken Encoding.ASCII encoder on legacy Mono platforms.
- Common: Enhanced SSPI error reporting.
Fixes
- HTTP: Fixed handling of multiple headers with same header name in .NET Standard edition.
- HTTP: Fixed a bug in handling HttpRequest.Headers that could cause headers to be duplicated in some scenarios.
- Cryptography: Fixed detection of AES/GCM support.
- Cryptography: Fixed detection of native Brainpool and secp256k1 support.
- Cryptography: Fixed null handling in CertificateInfo.MailAddress.
- Common: Fixed platform info in logs on macOS.