A
archana
Hi all,
I am having application which is validating URL's and checking whether
that URL is redirecting to some other URL at a time of opening or not.
My code looks like:-
WebRequest myWebRequest = WebRequest.Create(textBox1.Text);
response. myWebResponse = myWebRequest.GetResponse();
MssageBox.Show(myWebResponse.ResponseUri.ToString());
But sometimes i am getting error :-
The remote server returned an error: (500) Internal Server Error.
and
The remote server returned an error: (403) Forbidden.
But if i check that url in IE those URL's are opening properly but not
through above code.
Can someone tell me why this is happening.
Please help me asap.
thanks in advance.
I am having application which is validating URL's and checking whether
that URL is redirecting to some other URL at a time of opening or not.
My code looks like:-
WebRequest myWebRequest = WebRequest.Create(textBox1.Text);
response. myWebResponse = myWebRequest.GetResponse();
MssageBox.Show(myWebResponse.ResponseUri.ToString());
But sometimes i am getting error :-
The remote server returned an error: (500) Internal Server Error.
and
The remote server returned an error: (403) Forbidden.
But if i check that url in IE those URL's are opening properly but not
through above code.
Can someone tell me why this is happening.
Please help me asap.
thanks in advance.