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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -