Salve devo recuperare dei dati da un file json esterno su un altro dominio.
La funzione sul domino esterno che gestisce il recupero dei dati e questa:
$.ajax({
type: "POST",
dataType: "json",
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
url: services.sEstrazione,
data: JSON.stringify({"data":dataStr,"progressivoGiornal iero":val}),
success: function(data){ ecc...
io provo a recuperali con un smplice form html
<form method='post' action='http://www.lottomaticaitalia.it/10elotto/estrazioni-e-vincite/10-e-lotto-estrazioni-ogni-5.json'>
<input type='text' name='data' value='20140323'></br>
<input type='text' name='progressivoGiornaliero'></br>
<input type='submit' name='invi'>
</form>Solo che mi da questo errore: The server refused this request because the request entity is in a format not supported by the requested resource for the requested method (). Come posso risolvere?