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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -