1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#!/usr/bin/perl use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new( ssl_opts => { verify_hostname => 1 } ); $ua->add_handler("request_send", sub { print "\n\n***** Request *****\n"; shift->dump; return }); $ua->add_handler("response_done", sub { print "\n\n***** Response *****\n"; shift->dump; return }); my $stop = 0; my $versuch = 0; my %felder = ( foo => 'bar' ); while(!$stop) { $versuch ++; print "////// VERSUCH $versuch \\\\\\\\\\\\\n"; my $response = $ua->post('https: //ssl. ibanrechner .de/http.html',\%felder); # BLANKS ENTFERNEN!!! $stop = 1 if $response->is_success; } print "\n\n-------------------------------------------------------------\n"; print "Version IO::Socket::SSL: ".(defined $IO::Socket::SSL::VERSION ? $IO::Socket::SSL::VERSION : '- nicht inst. -')."\n"; print "Version Crypt::SSLeay: ".(defined $Crypt::SSLeay::VERSION ? $Crypt::SSLeay::VERSION : '- nicht inst. -')."\n"; print "Version LWP::UserAgent: ".$LWP::UserAgent::VERSION."\n"; print "Version Mozilla::CA: ".(defined $Mozilla::CA::VERSION ? $Mozilla::CA::VERSION : '- nicht inst. -')."\n";
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Perl 5.014004
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
IO::Socket::SSL: 2.012
Crypt::SSLeay: 0.72
LWP::UserAgent: 6.13
LWP::Protocol::https: 6.06
Mozilla::CA 20141217
Perl 5.016003
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
IO::Socket::SSL: 1.84
Crypt::SSLeay: 0.64
LWP::UserAgent: 6.04
LWP::Protocol::https: 6.03
Mozilla::CA 20130114
Perl 5.018004
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
IO::Socket::SSL: 1.998
Crypt::SSLeay: 0.72
LWP::UserAgent: 6.06
LWP::Protocol::https: 6.06
Mozilla::CA 20130114
Perl 5.020002
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
IO::Socket::SSL: 2.012
Crypt::SSLeay: 0.72
LWP::UserAgent: 6.13
LWP::Protocol::https: 6.06
1
2
3
4
5
6
7
Perl 5.014002
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
IO::Socket::SSL: 2.012
LWP::UserAgent: 6.13
LWP::Protocol::https: 6.03
Mozilla::CA 20141217
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
////// VERSUCH 1 \\\\\\
***** Request *****
POST https://ssl.ibanrechner.de/http.html
User-Agent: libwww-perl/6.04
Content-Length: 7
Content-Type: application/x-www-form-urlencoded
foo=bar
***** Response *****
HTTP/1.1 200 OK
Connection: close
Date: Fri, 27 Mar 2015 07:41:01 GMT
Server: Apache/2.2.22 (Debian)
Vary: Accept-Encoding
Content-Length: 2091
Content-Type: text/html; charset=utf-8
Client-Date: Fri, 27 Mar 2015 07:41:04 GMT
Client-Peer: 144.76.141.150:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limite
d/CN=COMODO RSA Organization Validation Secure Server CA
Client-SSL-Cert-Subject: /C=DE/postalCode=49205/ST=Niedersachsen/L=Hasbergen/str
eet=Kiefernweg 8/O=Theano GmbH/OU=Multi-Domain SSL/CN=ssl.ibanrechner.de
Client-SSL-Cipher: ECDHE-RSA-AES128-GCM-SHA256
Client-SSL-Socket-Class: IO::Socket::SSL
X-Powered-By: PHP/5.4.39-0+deb7u1
\n\n\n
To use this http-based interface instead of the SOAP interface, please<ul><li>re
fer to the documentation of the SOAP interface for the names of functions and th
eir parameters, as well as the return values: https://ssl.ibanrechner.de/soap/</
li>
<li>send requests to this URL, passing the parameters with GET or POST to fields
whose names are the same as the parameter names in the calls to SOAP functions.
<br/> For example, to calculate an IBAN, you could call:<br/> https://ssl.ibanre
chner.de/http.html?funct...
(+ 1579 more bytes not shown)
-------------------------------------------------------------
Version IO::Socket::SSL: 1.76
Version Crypt::SSLeay: - nicht inst. -
Version LWP::UserAgent: 6.04
Version Mozilla::CA: 20120309