The error is: Too many automatic redirections were attempted
I know this is not a csharp forum but the problem is seems to be with the website i'm trying to download from. I'm not sure but i think the problem is in the site.
In general i'm downloading using a timer every 5 minutes the same image from a website.
The website is: http://
If i'm surfing to the website with chrome and make save as on the image there is no problem to download the image.
But from my program in csharp i'm getting all the time 99% of the times error:
Too many automatic redirections were attempted
I used a program called fiddler and i got this results:
# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
31 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
32 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
33 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
34 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
35 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
36 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
37 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
38 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
39 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
40 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
41 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
42 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
43 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
44 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
45 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
46 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
47 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
48 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
49 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
50 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
51 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
52 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
53 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
54 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
55 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
56 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
57 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
58 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
59 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
60 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
61 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
62 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
63 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
The question is if i can by pass somehow this problem if it's on the site side ?
In csharp i'm just using the regular WebClient to download the file nothing speical.
private void fileDownloadRadar()
{
if (Client.IsBusy == true)
{
Client.CancelAsync();
}
else
{
Client.DownloadFileAsync(myUri, combinedTemp);
}
}
I know this is not a csharp forum but the problem is seems to be with the website i'm trying to download from. I'm not sure but i think the problem is in the site.
In general i'm downloading using a timer every 5 minutes the same image from a website.
The website is: http://
If i'm surfing to the website with chrome and make save as on the image there is no problem to download the image.
But from my program in csharp i'm getting all the time 99% of the times error:
Too many automatic redirections were attempted
I used a program called fiddler and i got this results:
# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
31 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
32 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
33 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
34 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
35 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
36 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
37 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
38 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
39 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
40 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
41 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
42 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
43 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
44 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
45 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
46 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
47 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
48 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
49 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
50 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
51 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
52 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
53 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
54 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
55 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
56 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
57 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
58 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
59 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
60 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
61 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
62 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
63 302 HTTP www.ims.gov.il /Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location= 0 my weather station.vshost:6768
The question is if i can by pass somehow this problem if it's on the site side ?
In csharp i'm just using the regular WebClient to download the file nothing speical.
private void fileDownloadRadar()
{
if (Client.IsBusy == true)
{
Client.CancelAsync();
}
else
{
Client.DownloadFileAsync(myUri, combinedTemp);
}
}