Rank: Newbie Groups: Member
Joined: 11/5/2014 Posts: 8
|
Code: C#
private void _webView_AfterReceiveHeaders(object sender, EO.WebBrowser.ResponseEventArgs e)
{
contenttype = e.Response.ContentType;
outputstream = e.Response.OutputStream; //ERROR THIS LINE: OutputStream is not available during this context.
}
I dont understand.. I wonder what was the response from the server of a particular request. How can I do this ?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
This event is triggered immediately after the header of the HTTP response is received. The contents of the response is not received yet at this moment.
The Response.OutputStream property is only used when you are handling the request (through a custom resource handler) and you need to send your response to the browser engine (by writing into OutputStream). So it is completely unrelated AfterReceiveHeaders.
Thanks!
|