Closed GoogleCodeExporter closed 8 years ago
Google servers return gzip-compressed output if the request headers contain
"Accept-Encoding:gzip" AND the UserAgent contains the string "gzip".
I managed to get compressed responses without any changes to the current
version of the library, my sample code is as follows:
string calendarUri =
"https://www.google.com/calendar/feeds/default/allcalendars/full";
CalendarService service = new CalendarService("gzip-demo");
service.RequestFactory.UseGZip = true;
IGDataRequest request =
service.RequestFactory.CreateRequest(GDataRequestType.Query, new
Uri(calendarUri));
request.Credentials = new GDataCredentials("user@domain.com", "password");
request.Execute();
Original comment by ccherub...@google.com
on 13 Jun 2011 at 10:34
Original comment by ccherub...@google.com
on 22 Jun 2011 at 2:31
Original issue reported on code.google.com by
wizlearn...@gmail.com
on 21 Mar 2011 at 9:45Attachments: