Welcome Guest Search | Active Topics | Sign In | Register

Error getting response outputstream Options
Rafael Lucena
Posted: Saturday, November 8, 2014 10:28:31 AM
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 ?
eo_support
Posted: Sunday, November 9, 2014 11:04:50 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.