Help for this page

Select Code to Download


  1. or download this
    # This works fine
    wget --quiet -O- 'https://haveibeenpwned.com/api/v3/breachedaccount/so
    +meemail@somewhere.com?truncateResponse=false' --header='hibp-api-key:
    + SAMPLEKEY' | jq -r '.[] | [.Name, .DataClasses[]] | @csv'
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    my $resp = $ua->request($request);
    
    print $resp->as_string;
    
  3. or download this
    # ./checkpwn.pl someemail@somewhere.com
    GET https://haveibeenpwned.com/api/v3/breachedaccount/someemail@somewh
    +ere.com?truncateResponse=false
    ...
    X-Content-Type-Options: nosniff
    
    error code: 1010