1 package Business::BatchPayment::Transport::HTTPS;
5 Sends a request by HTTPS POST, and downloads the response the same way.
6 Options are 'server', 'port', 'get_path', 'put_path', optionally
13 use Net::HTTPS::Any 0.10;
14 with 'Business::BatchPayment::Transport';
16 has [ qw( host port get_path put_path ) ] => (
21 has 'content_type' => (
24 default => 'text/plain'
32 warn "starting https_post...\n" if $self->debug;
33 my ( $page, $response, %reply_headers ) = Net::HTTPS::Any::https_post(
38 debug => ($self->debug >= 3),
40 warn "PAGE:\n$page\n\nRESPONSE:\n$response\n\n" if $self->debug >= 2;
41 return ($page, $response, %reply_headers);
47 $self->https_post($self->put_path, $content);
51 # will probably need to be overridden in most cases
53 my ($page, $response, %reply_headers) = $self->https_post($self->get_path);
57 __PACKAGE__->meta->make_immutable;