title: How to use hosted application pool identity
body: <p>I have a WCF RESTful service, it is hosted on IIS 7. I am using webHttpBinding binding with the WCF service.</p>
  
  <p>This service is having a application pool for which I specified a custom account identity(I specified user name &amp; password)</p>
  
  <p>Anonymous access is enabled for the WCF service.</p>
  
  <p>From inside the WCF service code I want to make a HttpWebRequest to another server. But I want to use the same context (identity) under which my application pool is running.</p>
  
  <p>How can I achieve it, do I need to use impersonation for this? or is there any better way for it.</p>
  
  <p>Annu</p>