Download file from a link that redirects c# -


i'm quite new c# , need download file link: http://www.addic7ed.com/original/94097/1 problem keeps redirecting me page got url from. (original url)

couldn't manage webclient neither httpwebrequest, maybe me doing wrong. hints on how this?

even tried this

edit: more specific, url supposed download .srt file , when click on chrome. however, when try download .srt file through c# being redirected , end downloading site's html source. how can replicate chrome's behavior?

edit2: managed importing webclient headers webbrowser. still interested in other ways it, tho. 1 seems durty me.

this behaviour happening on server side, not client side - ie, it's not c# problem. can url request fine using curl. maybe try setting different user-agent string on webclient or httpwebrequest objects, if can that?


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -