Thread Zugriff auf Webseite mit Client Zertifikat (3 answers)
Opened by TGoonie at 2015-07-21 14:08

GwenDragon
 2015-07-21 14:16
#181641 #181641
User since
2005-01-17
14559 Artikel
Admin1
[Homepage]
user image
Das geht mit LWP und LWP::Protocol.


Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use LWP::UserAgent ();
use LWP::Protocol::https;

my $url = 'https://example.org/SOAP/opera/4711';

my $ua = LWP::UserAgent->new;
my $content = 'TEST';

$ua->ssl_opts(
    SSL_ca_file   => 'cacert.pem',
    SSL_cert_file => 'clientcert.pem',
);

$ua->post(
    $url,
    Content => $content,
);

Last edited: 2015-07-21 14:18:25 +0200 (CEST)
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread Zugriff auf Webseite mit Client Zertifikat