Help for this page

Select Code to Download


  1. or download this
        my $ua = LWP::UserAgent->new;
        my $server_endpoint = "https://api.someserver.com/v1/";
    ...
            print "HTTP POST error code: ", $resp->code;
            print "HTTP POST error message: ", $resp->message;
        }
    
  2. or download this
    HTTP POST error code: 400
    HTTP POST error message: Bad Request