{
    "mode": "perldoc",
    "parameter": "LWP::Protocol::https",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/LWP%3A%3AProtocol%3A%3Ahttps/json",
    "generated": "2026-06-12T06:18:55Z",
    "synopsis": "use LWP::UserAgent;\n$ua = LWP::UserAgent->new(sslopts => { verifyhostname => 1 });\n$res = $ua->get(\"https://www.example.com\");\n# specify a CA path\n$ua = LWP::UserAgent->new(\nsslopts => {\nSSLcapath     => '/etc/ssl/certs',\nverifyhostname => 1,\n}\n);",
    "sections": {
        "NAME": {
            "content": "LWP::Protocol::https - Provide https support for LWP::UserAgent\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use LWP::UserAgent;\n\n$ua = LWP::UserAgent->new(sslopts => { verifyhostname => 1 });\n$res = $ua->get(\"https://www.example.com\");\n\n# specify a CA path\n$ua = LWP::UserAgent->new(\nsslopts => {\nSSLcapath     => '/etc/ssl/certs',\nverifyhostname => 1,\n}\n);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The LWP::Protocol::https module provides support for using https schemed URLs with LWP. This\nmodule is a plug-in to the LWP protocol handling, so you don't use it directly. Once the module\nis installed LWP is able to access sites using HTTP over SSL/TLS.\n\nIf hostname verification is requested by LWP::UserAgent's \"sslopts\", and neither \"SSLcafile\"\nnor \"SSLcapath\" is set, then \"SSLcafile\" is implied to be the one provided by Mozilla::CA.\nIf the Mozilla::CA module isn't available SSL requests will fail. Either install this module,\nset up an alternative \"SSLcafile\" or disable hostname verification.\n\nThis module used to be bundled with the libwww-perl, but it was unbundled in v6.02 in order to\nbe able to declare its dependencies properly for the CPAN tool-chain. Applications that need\nhttps support can just declare their dependency on LWP::Protocol::https and will no longer need\nto know what underlying modules to install.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "IO::Socket::SSL, Crypt::SSLeay, Mozilla::CA\n\nCOPYRIGHT & LICENSE\nCopyright (c) 1997-2011 Gisle Aas.\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
            "subsections": []
        }
    },
    "summary": "LWP::Protocol::https - Provide https support for LWP::UserAgent",
    "flags": [],
    "examples": [],
    "see_also": []
}