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
Post a Comment