We would like to get a compressed response of a XMLA query. We have seen that the response is content-type: text/xml, so we enabled it in IIS. However, in the request header the only accept-encoding is "Identity", and not "Gzip". Is there a way to edit the request header, or any way to get a compressed response?
I attach two pictures: in the "XMLARequest.png" you can see the original request done by the XMLADataProvider. In the "GzippedRequest.png" you can see our request: we took the original one and just edited the accept-encoding field, and we got a compressed response.
I attach also the code we use to create the connection:
dataProvider = this.Resources["DataProvider"] as XmlaDataProvider;
dataProvider.DeferUpdates = false;
dataProvider.PrepareDescriptionForField += XmlaDataProvider_PrepareDescriptionForField;
dataProvider.ConnectionSettings = new XmlaConnectionSettings();
dataProvider.ConnectionSettings.ServerAddress = "...";
dataProvider.ConnectionSettings.Database = "...";
dataProvider.ConnectionSettings.Cube = "...";
XmlaQueryProperty localization = new XmlaQueryProperty();
localization.Name = "LocaleIdentifier";
localization.Value = "1033";