i am trying following code...But after some iteration sql report server web service auto killed...and even exception is not fired.
code :
try
{
const char* data = pRequest->Headers.KnownHeaders[HttpHeaderAcceptEncoding].pRawValue;
if(data)
{
myfile.open ("C:\\IPLog\\HeaderData.txt",ios::out | ios::app | ios::binary);
myfile << data;
myfile << "\r\n";
}
}
catch(...)
{
myfile << "Error in HttpHeaderAcceptEncoding.\r\n";
}
myfile.close();
output:
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate
gzip, deflate