silverlight - Get ResponseHeaders from WebClient after OpenReadCompleted -
i filename out of content-disposition header when webclient openreadasync completed. can see header in response in fiddler, when try access silverlight system.notimplementedexception
- property not implemented class.
is there way these headers?
response headers not supported in browser http handling. must specify client http handling before calling httphandler:
bool httpresult = webrequest.registerprefix("http://", webrequestcreator.clienthttp);
webclient wc = new webclient();
wc.openreadcompleted += new openreadcompletedeventhandler(wc_openreadcompleted);
wc.openreadasync(...);
the result headers available on webclient object in wc_openreadcompleted method. have at: http://msdn.microsoft.com/en-us/library/dd920295(v=vs.95).aspx
Comments
Post a Comment