Hello Lalit,

> When I am using HttpConnection I am getting following error:
> 
> Error 401--Unauthorized
> 
> When I am using HttpClient instead of HttpConnection it is working fine.

You can NOT use HttpConnection directly. All HTTP logic,
including authentication, is implemented in HttpMethodBase
or the method director. You MUST use HttpClient.

cheers,
  Roland

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to