{"id":7421,"date":"2022-12-20T19:38:02","date_gmt":"2022-12-20T22:38:02","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/lwpprotocolhttps-man3\/"},"modified":"2022-12-20T19:38:02","modified_gmt":"2022-12-20T22:38:02","slug":"lwpprotocolhttps-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/lwpprotocolhttps-man3\/","title":{"rendered":"LWP::Protocol::https (man3)"},"content":{"rendered":"<h1 align=\"center\">LWP::Protocol::https<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COPYRIGHT &#038; LICENSE\">COPYRIGHT &#038; LICENSE<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">LWP::Protocol::https \u2212 Provide https support for LWP::UserAgent<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">use LWP::UserAgent; <br \/> $ua = LWP::UserAgent\u2212>new(ssl_opts => { verify_hostname => 1 }); <br \/> $res = $ua\u2212>get(&#8220;https:\/\/www.example.com&#8221;); <br \/> # specify a CA path <br \/> $ua = LWP::UserAgent\u2212>new( <br \/> ssl_opts => { <br \/> SSL_ca_path => &#8216;\/etc\/ssl\/certs&#8217;, <br \/> verify_hostname => 1, <br \/> } <br \/> );<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The LWP::Protocol::https module provides support for using https schemed URLs with <small>LWP.<\/small> This module is a plug-in to the <small>LWP<\/small> protocol handling, so you don\u2019t use it directly. Once the module is installed <small>LWP<\/small> is able to access sites using <small>HTTP<\/small> over <small>SSL\/TLS.<\/small><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If hostname verification is requested by LWP::UserAgent\u2019s &#8220;ssl_opts&#8221;, and neither &#8220;SSL_ca_file&#8221; nor &#8220;SSL_ca_path&#8221; is set, then &#8220;SSL_ca_file&#8221; is implied to be the one provided by Mozilla::CA. If the Mozilla::CA module isn\u2019t available <small>SSL<\/small> requests will fail. Either install this module, set up an alternative &#8220;SSL_ca_file&#8221; or disable hostname verification.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This module used to be bundled with the libwww-perl, but it was unbundled in v6.02 in order to be able to declare its dependencies properly for the <small>CPAN<\/small> tool-chain. Applications that need https support can just declare their dependency on LWP::Protocol::https and will no longer need to know what underlying modules to install.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">IO::Socket::SSL, Crypt::SSLeay, Mozilla::CA<\/p>\n<h2>COPYRIGHT &#038; LICENSE <a name=\"COPYRIGHT &#038; LICENSE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright (c) 1997\u22122011 Gisle Aas.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This library is free software; you can redistribute it and\/or modify it under the same terms as Perl itself.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  LWP::Protocol::https \u2212 Provide https support for LWP::UserAgent <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3733,3007],"class_list":["post-7421","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-lwpprotocolhttps","tag-man3"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7421"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7421\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}