Error 4600 Unable to process your request. Please verify if the name and value is appropriate for the "xmlData" parameter.

Error 4600 Unable to process your request. Please verify if the name and value is appropriate for the "xmlData" parameter.

Hi, I'm trying to insert records in the Contacts module, but all I get is this 4600 Error. I've tried inserting just First Name and Last Name, but the error is still there, so I think is not related with my fields.
This is my code:
  1. <?php

    $url = 'https://crm.zoho.com/crm/private/xml/Contacts/insertRecords';

    //campi contatto: riempire con i valori reali
    $name = 'name';
    $id_facebook = '0';
    $username = 'user@mail.ext';
    $password = 'encryptedpass';
    $surname = 'surname';
    $data_di_nascita = '2/6/1983';
    $datanascita = '2';
    $mesenascita = '6';
    $annonascita = '1983';
    $sesso = '1';
    $lingueparlate = 'italiano';
    $cf = 'xxxxxxxxxxxxxx';
    $email = 'user2@email.ext';
    $nickname = 'nick';
    $aboutme = 'descrizione';
    $telephone= 'xxxxxxxxxx';
    $id_profile = '0';
    $id_category = '0';
    $paypal = 'paypal@mail.ext';
    $nomebanca = 'banca';
    $beneficiario = 'beneficiario';
    $bankholder = 'bholder';
    $partita_iva = 'xxxxxxxx';
    $iban = 'xxxx';
    $bic = 'xxxx';
    $code = 'xxxxx';
    $is_abil = '0';
    $indirizzo = 'via...';
    $citta = 'Roma';
    $provincia = 'Roma';
    $paese = 'Italia';
    $cap = 'xxxxx';
    $fax = 'xxxxxxxxxx';
    $pi = 'xxxxxxxxxxx';
    $indirizzofatt = 'via...';
    $cittafatt = 'Roma';
    $provinciafatt = 'Roma';
    $paesefatt = 'Italia';
    $contratto_partner_accettato = '0';
    $codicesconto = 'xx';
    $verifica_email = '1';
    $verifica_telefono = '1';
    $id_mmk = '0';
    $tokenpass = 'xxxxxxxxx';

    //fine campi. non editare oltre questa linea

    $params = 'authtoken=myrealtoken&scope=crmapi&xmlData=';
    $params .= '&lt;Contacts&gt;&lt;row no="1"&gt;';
    $params .= '&lt;FL val="First Name"&gt;'.$name.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Last Name"&gt;'.$surname.'&lt;/FL&gt;';
    $params .= '&lt;FL val="id_facebook"&gt;'.$id_facebook.'&lt;/FL&gt;';
    $params .= '&lt;FL val="password"&gt;'.$password.'&lt;/FL&gt;';
    $params .= '&lt;FL val="id_profile"&gt;'.$id_profile.'&lt;/FL&gt;';
    $params .= '&lt;FL val="id_category"&gt;'.$id_category.'&lt;/FL&gt;';
    $params .= '&lt;FL val="is_abil"&gt;'.$is_abil.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Contratto Partner Accettato"&gt;'.$contratto_partner_accettato.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Verifica Email"&gt;'.$verifica_email.'&lt;/FL&gt;&gt;';
    $params .= '&lt;FL val="Verifica Telefono"&gt;'.$verifica_telefono.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Mailing Street"&gt;'.$indirizzo.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Mailing City"&gt;'.$citta.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Mailing Zip"&gt;'.$cap.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Mailing Country"&gt;'.$paese.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Description"&gt;'.$aboutme.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Secondary Email"&gt;'.$email.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Data Di Nascita (text)"&gt;'.$data_di_nascita.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Data Nascita"&gt;'.$datanascita.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Mese Nascita"&gt;'.$mesenascita.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Anno Nascita"&gt;'.$annonascita.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Lingue Parlate"&gt;'.$lingueparlate.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Codice Fiscale"&gt;'.$cf.'&lt;/FL&gt;';
    $params .= '&lt;FL val="nickname"&gt;'.$nickname.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Nome Banca"&gt;'.$nomebanca.'&lt;/FL&gt;';
    $params .= '&lt;FL val="beneficiario"&gt;'.$beneficiario.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Bank Holder"&gt;'.$bankholder.'&lt;/FL&gt;';
    $params .= '&lt;FL val="iban"&gt;'.$iban.'&lt;/FL&gt;';
    $params .= '&lt;FL val="bic"&gt;'.$bic.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Partita Iva"&gt;'.$pi.'&lt;/FL&gt;';
    $params .= '&lt;FL val="sesso"&gt;'.$sesso.'&lt;/FL&gt;';
    $params .= '&lt;FL val="username"&gt;'.$username.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Indirizzo Fatturazione"&gt;'.$indirizzofatt.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Città Fatturazione"&gt;'.$cittafatt.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Provincia Fatturazione"&gt;'.$provinciafatt.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Paese Fatturazione"&gt;'.$paesefatt.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Phone"&gt;'.$telephone.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Fax"&gt;'.$fax.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Paypal Business Email"&gt;'.$paypal.'&lt;/FL&gt;';
    $params .= '&lt;FL val="code"&gt;'.$code.'&lt;/FL&gt;';
    $params .= '&lt;FL val="Id mmk"&gt;'.$id_mmk.'&lt;/FL&gt;';
    $params .= '&lt;/row&gt;&lt;/Contacts&gt;';
    print_r($params);
    $ch = curl_init();
    curl_setopt($ch,CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, 30);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch,CURLOPT_POSTFIELDS, $params);
    $result = curl_exec($ch);
    print_r(curl_error($ch));
    print_r($result);
    curl_close($ch);
    ?>;

This is the result page (with params variable printed):


authtoken=myrealtoken&scope=crmapi&xmlData=<Contacts><row no="1"><FL val="First Name">name</FL><FL val="Last Name">surname</FL><FL val="id_facebook">0</FL><FL val="password">encryptedpass</FL><FL val="id_profile">0</FL><FL val="id_category">0</FL><FL val="is_abil">0</FL><FL val="Contratto Partner Accettato">0</FL><FL val="Verifica Email">1</FL>><FL val="Verifica Telefono">1</FL><FL val="Mailing Street">via...</FL><FL val="Mailing City">Roma</FL><FL val="Mailing Zip">xxxxx</FL><FL val="Mailing Country">Italia</FL><FL val="Description">descrizione</FL><FL val="Secondary Email"> user2@email.ext</FL><FL val="Data Di Nascita (text)">2/6/1983</FL><FL val="Data Nascita">2</FL><FL val="Mese Nascita">6</FL><FL val="Anno Nascita">1983</FL><FL val="Lingue Parlate">italiano</FL><FL val="Codice Fiscale">xxxxxxxxxxxxxx</FL><FL val="nickname">nick</FL><FL val="Nome Banca">banca</FL><FL val="beneficiario">beneficiario</FL><FL val="Bank Holder">bholder</FL><FL val="iban">xxxx</FL><FL val="bic">xxxx</FL><FL val="Partita Iva">xxxxxxxxxxx</FL><FL val="sesso">1</FL><FL val="username"> user@mail.ext</FL><FL val="Indirizzo Fatturazione">via...</FL><FL val="Città Fatturazione">Roma</FL><FL val="Provincia Fatturazione">Roma</FL><FL val="Paese Fatturazione">Italia</FL><FL val="Phone">xxxxxxxxxx</FL><FL val="Fax">xxxxxxxxxx</FL><FL val="Paypal Business Email"> paypal@mail.ext</FL><FL val="code">xxxxx</FL><FL val="Id mmk">0</FL></row></Contacts> 4600Unable to process your request. Please verify if the name and value is appropriate for the "xmlData" parameter. ;

The strange thing is that if I take the generated url and attach it to https://crm.zoho.com/crm/private/xml/Contacts/insertRecords? the record is added. Any help is appreciated