OnDataAvailable content type always null or empty for IE11

Add-in Express™ Support Service
That's what is more important than anything else

OnDataAvailable content type always null or empty for IE11
This used to works on 9.0 and 8.6 but it no longer work now for IE11. 
Quoc Quach




Posts: 17
Joined: 2013-05-09
private void IEModule_OnDataAvailable(object sender, ADXIEDataAvailableEventArgs e)
{
string contentType = String.Empty;
Encoding encoding = GetEncoding(e.Options, e.CodePage);
byte[] contentTypeBytes = e.GetQueryInfo(HTTP_QUERY_CONTENT_TYPE);
if (contentTypeBytes != null)
contentType = encoding.GetString(contentTypeBytes);
Trace.WriteLine("contentType: {0}", contentType);
}

This block of code used to work for 9.0 and 8.6 but after upgrade to 9.1 it no longer working. The function e.GetQueryInfo(uint) always return null.

This found on IE11 - windows 7, I have not test it on other IE versions.
Posted 11 Jun, 2014 21:10:56 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Quoc,

Please change the code as shown in this example: http://www.add-in-express.com/tmp/googlecustombutton.zip
'GetQueryInfo' still works but not for all urls.
E.g.
the following page will not be detected:
https://www.google.com/?gws_rd=ssl

but this one will work properly:
http://msdn.microsoft.com/en-us/library/ms775147(v=vs.85).aspx
Posted 12 Jun, 2014 11:55:33 Top