< ページ移動: 1 2 >
# ./gcm_message_send.pl*******************************************************************Using the default of SSL_verify_mode of SSL_VERIFY_NONE for clientis depreciated! Please set SSL_verify_mode to SSL_VERIFY_PEERtogether with SSL_ca_file|SSL_ca_path for verification.If you really don't want to verify the certificate and keep theconnection open to Man-In-The-Middle attacks please setSSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.*******************************************************************at /usr/lib/perl5/site_perl/5.8.8/LWP/Protocol/http.pm line 31id=0:13685930XXXXXXXX%XXXX249ace0038c9
my $ua = LWP::UserAgent->new(ssl_opts => {verify_hostname => 0,SSL_verify_mode => SSL_VERIFY_NONE,});
#!/usr/bin/perl## gcm_message_send.pl#use LWP;$ENV{'PERL_NET_HTTPS_SSL_SOCKET_CLASS'} = "Net::SSL";$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;