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
Post a Comment