line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Postini::UserAgent;
|
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
34
|
use strict;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
942
|
use HTTP::Cookies;
|
|
1
|
|
|
|
|
19754
|
|
|
1
|
|
|
|
|
30
|
|
7
|
1
|
|
|
1
|
|
1030
|
use LWP::UserAgent;
|
|
1
|
|
|
|
|
55415
|
|
|
1
|
|
|
|
|
32
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
9
|
use vars qw( @ISA $VERSION );
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
332
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
@ISA = qw( LWP::UserAgent );
|
12
|
|
|
|
|
|
|
$VERSION = '0.01';
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new {
|
15
|
|
|
|
|
|
|
|
16
|
2
|
|
|
2
|
1
|
4
|
my $class = shift;
|
17
|
2
|
|
|
|
|
20
|
$class->SUPER::new(cookie_jar => new HTTP::Cookies, @_);
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
}
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub request {
|
22
|
|
|
|
|
|
|
|
23
|
15
|
|
|
15
|
1
|
31918
|
my $self = shift;
|
24
|
15
|
|
|
|
|
72
|
my $response = $self->SUPER::request(@_);
|
25
|
15
|
|
|
|
|
820
|
$self->{'_last_response'} = $response;
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
}
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub post {
|
30
|
|
|
|
|
|
|
|
31
|
11
|
|
|
11
|
1
|
16
|
my $self = shift;
|
32
|
11
|
|
|
|
|
67
|
my $response = $self->SUPER::post(@_);
|
33
|
11
|
|
|
|
|
43
|
$self->{'_last_response'} = $response;
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
}
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub get {
|
38
|
|
|
|
|
|
|
|
39
|
4
|
|
|
4
|
1
|
9
|
my $self = shift;
|
40
|
4
|
|
|
|
|
26
|
my $response = $self->SUPER::get(@_);
|
41
|
4
|
|
|
|
|
13
|
$self->{'_last_response'} = $response;
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
}
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub head {
|
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
0
|
1
|
0
|
my $self = shift;
|
48
|
0
|
|
|
|
|
0
|
my $response = $self->SUPER::head(@_);
|
49
|
0
|
|
|
|
|
0
|
$self->{'_last_response'} = $response;
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
}
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub simple_request {
|
54
|
|
|
|
|
|
|
|
55
|
17
|
|
|
17
|
1
|
244
|
my $self = shift;
|
56
|
17
|
|
|
|
|
108
|
my $response = $self->SUPER::simple_request(@_);
|
57
|
17
|
|
|
|
|
177
|
$self->{'_last_response'} = $response;
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
}
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
sub send_request {
|
62
|
|
|
|
|
|
|
|
63
|
17
|
|
|
17
|
0
|
8343
|
my $self = shift;
|
64
|
17
|
|
|
|
|
81
|
my $response = $self->SUPER::send_request(@_);
|
65
|
17
|
|
|
|
|
13287
|
$self->{'_last_response'} = $response;
|
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
}
|
68
|
|
|
|
|
|
|
|
69
|
0
|
|
|
0
|
1
|
|
sub last_response { shift->{'_last_response'}; }
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
1;
|
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
__END__
|