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
11 use Net::HTTPS::Any 0.10;
13 with 'Business::BatchPayment::Transport';
15 has [ qw( host port get_path put_path ) ] => (
20 has 'content_type' => (
23 default => 'text/plain'
31 warn "starting https_post...\n" if $self->debug;
32 my ( $page, $response, %reply_headers ) = Net::HTTPS::Any::https_post(
37 debug => ($self->debug >= 3),
39 warn "PAGE:\n$page\n\nRESPONSE:\n$response\n\n" if $self->debug >= 2;
40 return ($page, $response, %reply_headers);
46 $self->https_post($self->put_path, $content);
50 # will probably need to be overridden in most cases
52 my ($page, $response, %reply_headers) = $self->https_post($self->get_path);
56 __PACKAGE__->meta->make_immutable;