Perl insertRecords error 4600

Perl insertRecords error 4600

I am trying to add a lead to CRM but I get this error:
  
   
    4600 
    
     Unable to process your request. Please verify if the name and value is appropriate for the "xmlData" parameter.
    
   
  
My code:
  
   
    
     
  1. #!/usr/bin/perl use Data::Dumper; use LWP::UserAgent; use HTTP::Request; use URI::Escape; use strict; use warnings; use CGI::Carp qw(fatalsToBrowser); my $authtoken = '________________________________'; my $url = "https://crm.zoho.com/crm/private/xml/Leads/insertRecords?newFormat=1&authtoken=${authtoken}&scope=crmapi"; my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(POST => $url); $req->content_type('text/xml; charset=utf-8'); my $xmlData = '<Leads><row no="1"><FL val="Lead Source">Web Download</FL><FL val="Company">Your Company</FL><FL val="First Name">Hannah</FL><FL val="Last Name">Smith</FL><FL val="Email">testing@testing.com</FL><FL val="Title">Manager</FL><FL val="Phone">1234567890</FL><FL val="Home Phone">0987654321</FL><FL val="Other Phone">1212211212</FL><FL val="Fax">02927272626</FL><FL val="Mobile">292827622</FL></row></Leads>'; my $post_query = 'xmlData=' . ($xmlData); $req->content($post_query); my $res = $ua->request($req); print Dumper($res);
Any help would be appreciated, thanks!