Guest User

Untitled

a guest
Jan 25th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. my $client = Regru::API->new(
  2. username => 'login',
  3. password => 'pass',
  4. );
  5.  
  6. my %params = (
  7. 'domains' => @domains
  8. );
  9.  
  10. my $resp = $client->domain->check(%params);
  11. if ($resp->is_success) {
  12. # Обрабатываем ответ
  13. } else {
  14. say "Request error: " . $resp->error_text . " (Code: " . $resp->error_code . ")";
  15. }
  16.  
  17. Error: service failed: cant connect to api.reg.ru:443
  18.  
  19. Bad address at LWP/Protocol/http.pm line 47, <$wf> line 1.
  20. At regru/api/response.pm line 75.
  21. Request error: API response error (Code: API_FAIL)
Add Comment
Please, Sign In to add comment