Thread https authentication error (78 answers)
Opened by a_abels at 2011-10-10 15:16

a_abels
 2011-10-14 08:02
#153205 #153205
User since
2010-07-11
90 Artikel
BenutzerIn
[default_avatar]
Hallo zusammen,

ich habe jetzt noch ein wenig mit Mechanize herumprobiert: ebenfalls kein Erfolg!

Code: (dl )
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
use strict;
use WWW::Mechanize;
use Crypt::SSLeay;

my $url = "https://poms-test.ts.fujitsu.com/CallLog/";

my $mech = WWW::Mechanize->new( autocheck => 1 ); # initalize
#$mech->credentials("username", "password");
$mech->credentials('poms-test.ts.fujitsu.com:80', 'POMS2 HTTP Interface Login', 'username', 'password');

#my $content = $mech->get($url); # get content of url
my $response = $mech->post('https://poms-test.ts.fujitsu.com/CallLog',
[
msg_node => 'meinKnoten',
]);

if ($response->is_success) {
print "\n\nis success (content):", $response->content, "\n\n";
}
else {
print "\n\nis not success (status_line): ", $response->status_line, "\n\n";
# print "\n\nis not success (content):", $response->content, "\n\n";
}

print "url:'$url'\ncontent:'$response'\n";

exit;


Hat noch jemand eine Idee???? Ich würde mich sehr freuen ....


mfg André
Last edited: 2011-10-25 14:14:03 +0200 (CEST)
Antworten mit Zitat

View full thread https authentication error