Hi, I am trying to use httpwebrequest to download a csv file but I always get 403 forbidden error. When I type the same url in the browser the file loads. This is my code
WebRequest webReq = (WebRequest)WebRequest.Create(queryUrl); webReq.Method = "GET"; webReq.Credentials = CredentialCache.DefaultCredentials; webReq.ContentType = "text/xml"; How should I modify my code to make it work or what other things should I check ? Thanks, Akhil
