voici le code
StreamReader re = File.OpenText("./cc.RPc");
while ((input = re.ReadLine()) != null)
{
input2 = re.ReadLine();
input2 = input2.Replace("&", "&");
string destination = "c:\\" + input + ".mp3";
System.Net.WebClient myWebClient = new System.Net.WebClient();
myWebClient.DownloadFile(input2, destination);
myWebClient.Dispose();
}
re.Close();
}
voici l'erreur
An unhandled exception of type 'System.Net.WebException' occurred in System.dll
Additional information: The server committed a protocol violation. Section=ResponseStatusLine
au premier téléchargement aucun probleme le fichier est entierement téléchargé mais a la deuxieme boucle il donne le message d'erreur
Partager