Thread LWP und proxy (52 answers)
Opened by perl-snaks at 2012-04-25 13:04

perl-snaks
 2012-04-27 14:45
#157904 #157904
User since
2012-04-19
54 Artikel
BenutzerIn
[default_avatar]
mein Problem liegt darin, dass ich auf die secure Webseiten (HTTPS://) nicht zugreifen kann.

Da kommt immer kann nicht verbunden werden.

Wenn ich diesen Skript über Internet explorer aufrufe :
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;

use LWP::UserAgent;

my $pw='abcdefg';
my $us='1234567';
my $url = "https://poms-test.ts.fujitsu.com/CallLog";

my $ua = LWP::UserAgent->new;
$ua->requests_redirectable(undef); # Redirects ausschalten!
$ua->credentials("poms-test.ts.fujitsu.com:443", "POMS2", $us, $pw);
$ua->proxy( http  => 'http://wwwproxy.bank.dresdner.net:8080');
$ua->add_handler("request_send",  sub { shift->dump; return });
$ua->add_handler("response_done", sub { shift->dump; return });
my $response = $ua->post($url,[0=>0]);
print $response->status_line;
print $response->decoded_content;



kommt die Fehler meldung:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
POST https://poms-test.ts.fujitsu.com/CallLog 
User-Agent: libwww-perl/6.02
Content-Length: 3
Content-Type: application/x-www-form-urlencoded
0=0

500 Can't connect to poms-test.ts.fujitsu.com:443 (Bad hostname)
Content-Type: text/plain
Client-Date: Fri, 27 Apr 2012 12:38:54 GMT
Client-Warning: Internal response Can't connect to poms-test.ts.fujitsu.com:443 (Bad hostname)
LWP::Protocol::https::Socket: Bad hostname 'poms-test.ts.fujitsu.com' at C:/Perl/lib/LWP/Protocol/http.pm line 51.
500 Can't connect to poms-test.ts.fujitsu.com:443 (Bad hostname)Can't connect to poms-test.ts.fujitsu.com:443 (Bad hostname)
LWP::Protocol::https::Socket: Bad hostname 'poms-test.ts.fujitsu.com' at C:/Perl/lib/LWP/Protocol/http.pm line 51.



Liegt an Client Zertifikat.
Hat jemand irgend eine Idee?

modedit Editiert von GwenDragon: Log umgebrochen
Last edited: 2012-04-27 15:49:47 +0200 (CEST)

View full thread LWP und proxy