questo codice, a volte funziona, a volte no. Nel senso che alcune volte mi dà un file xml corretto, altre volte un file illeggibilecodice:Private url As String = "https://www.tabaccai.it/index.php?option=com_content&view=category&id=29&Itemid=201&format=feed&type=rss" Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click Using client As New WebClient() client.DownloadFile(url, "c:\tmp\prova.txt") End Using End Sub Protected Sub Button2_Click(sender As Object, e As System.EventArgs) Handles Button2.Click Using client As New WebClient() Dim buffer As Byte() = client.DownloadData(url) File.WriteAllBytes("c:\tmp\prova1.txt", buffer) End Using End Sub
se poi navigo nel sito con Opera, e vado nella pagina https://www.tabaccai.it, Feed RSS, variazioni tariffe, vedo che neanche Opera legge il file.