Net::HTTPS(3) User Contributed Perl Documentation Net::HTTPS(3)

# [DESCRIPTION](#DESCRIPTION)

The "Net::HTTPS" is a low-level HTTP over SSL/TLS client. The interface is the same as the interface for "Net::HTTP", but the constructor takes additional parameters as accepted by IO::Socket::SSL. The "Net::HTTPS" object is an "IO::Socket::SSL" too, which makes it inherit additional methods from that base class.

For historical reasons this module also supports using "Net::SSL" (from the Crypt-SSLeay distribution) as its SSL driver and base class. This base is automatically selected if available and "IO::Socket::SSL" isn't. You might also force which implementation to use by setting $Net::HTTPS::SSL\_SOCKET\_CLASS before loading this module. If not set this variable is initialized from the "PERL\_NET\_HTTPS\_SSL\_SOCKET\_CLASS" environment variable.

# [ENVIRONMENT](#ENVIRONMENT)

You might set the "PERL\_NET\_HTTPS\_SSL\_SOCKET\_CLASS" environment variable to the name of the base SSL implementation (and Net::HTTPS base class) to use. The default is "IO::Socket::SSL". Currently the only other supported value is "Net::SSL".

# [SEE ALSO](#SEE_ALSO)

Net::HTTP, IO::Socket::SSL

2026-10-26 perl v5.44.0

---

Document: Net::HTTPS(3pm) from perl-net-http 6.24-r4 (Chainguard OS)
Source: https://github.com/libwww-perl/Net-HTTP.git
