Click here to Skip to main content
16,020,714 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to download zip,csv,xls files form following link
"
C#
http://www.nseindia.com/archives/equities/bhavcopy/pr/PR191112.zip,
http://www.nseindia.com/content/nsccl/AUB_2012217_19112012.csv,
http://www.nseindia.com/content/fo/fii_stats_19-Nov-2012.xls
"

this is the code which is working file for other site but its showing me error for www.nseindia.com[^]
C#
using System.Net;
  WebClient webC = new WebClient();

 webC.DownloadFile("http://www.nse-india.com/archives/equities/bhavcopy/pr/PR161112.zip", "C:\\Documents and Settings\\check\\Desktop\\Errors\\PR161112.zip");


HTML
The remote server returned an error: (403) Forbidden.

can any one tell me whats the error mean? whats the solution of this.

I am using Windows XP

If u have any other way to download files then help me.!
Posted
Updated 19-Nov-12 22:12pm
v5
Comments
Sergey Alexandrovich Kryukov 19-Nov-12 23:42pm    
It allows to download; I just tried.
--SA
Sanjay K. Gupta 19-Nov-12 23:46pm    
Yes it allows to download. Me too tried.
Sergey Alexandrovich Kryukov 19-Nov-12 23:56pm    
This is conspiracy against OP, personally... :-)
--SA
Patel Shailendra 20-Nov-12 0:15am    
you have download from NSE-India website and whats your operating system
Sergey Alexandrovich Kryukov 20-Nov-12 0:17am    
Windows 7 for x86-64
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900