sub post { my ($self, $action, $xml) = @_; my $url = $self->location; cluck "The mech attribute has been deprecated and is replaced by ua attribute!" if $self->has_mech; $self->clear_response; my $response = $self->ua->post( $url, 'Content-Type' => $self->content_type, 'SOAPAction' => qq{"$action"}, 'Proxy-Connection' => 'Keep-Alive', 'Accept-Encoding' => 'gzip, deflate', Content => $xml->toString, ); $self->response($response); return $response->decoded_content; }