webRequest 호출시 (401) Unauthorized 에러가 발생한 경우 처리한다.

 

HttpWebRequest myReq = ...

myReq.UseDefaultCredentials = true;

myReq.PreAuthenticate      = true;

myReq.Credentials          = CredentialCache.DefaultCredentials;

 

 

참고

https://stackoverflow.com/questions/10205854/error-the-remote-server-returned-an-error-401-unauthorized

+ Recent posts