c# - Read HttpResponseMessage with WebBrowser object returned from Web API method -


i have requirement wherein need post data web api method webbrowser object in class library. able post data , process same. web api returns httpresponsemessage need read webbrowser object.

example:

post data:

 this.navigate(url, "", postdata, additionalheaders); 

web api returns:

return request.createresponse(httpstatuscode.created, "<guid>"); 

now, want status , read guid webbrowser object. (like read documenttext in ondocumentcompleted event).

or need make changes in web api method read guid?

whoa !!! need add:

response.content.headers.contenttype = new mediatypeheadervalue("text/html"); 

Comments

Popular posts from this blog

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

javascript - Can Piwik report referrer in real time? -