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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -