G
genc_ ymeri at hotmail dot com
Hi,
I'm trying to recieve the response status code rather than the message in
the below code :
try
{
responseArray =
myWebClient.UploadValues(uriString,"POST",myNameValueCollection);
}
catch (System.Net.WebException ex)
{
// I'm excpecting 401 error (SC_UNAUTHORIZED) or similiar errors
// I want to recieve the error code rather then :
// "The remote server returned an error: (401) Unauthorized."
}
Any tip very much appreciated !
I'm trying to recieve the response status code rather than the message in
the below code :
try
{
responseArray =
myWebClient.UploadValues(uriString,"POST",myNameValueCollection);
}
catch (System.Net.WebException ex)
{
// I'm excpecting 401 error (SC_UNAUTHORIZED) or similiar errors
// I want to recieve the error code rather then :
// "The remote server returned an error: (401) Unauthorized."
}
Any tip very much appreciated !