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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -