c# - The remote server returned an error: (403) Forbidden. while getting the website into stream reader -


i'm getting error @

streamreader stream = new streamreader(request.getresponse().getresponsestream()); 

saying remote server returned error :

403 forbidden

i'm passing http://www.snapdeal.com in url.

streamreader reader = objm.urlserverr(address);           public streamreader urlserverr(string url)                 {                     httpwebrequest request = (httpwebrequest)webrequest.create(url);                     streamreader stream = new streamreader(request.getresponse().getresponsestream());                     return stream;                 } 


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -