Use RestSharp to check if gzip is enabled

552 views
Skip to first unread message

tinius.alex...@gmail.com

unread,
Mar 28, 2014, 9:09:32 PM3/28/14
to rest...@googlegroups.com
I want to use RestSharp to test if gzip is working on my web server, so I send a request and I inspect the response.

response.ContentEncoding = "", and there is no Content-Encoding in response.Headers either. If I go to the same URL in my browser, it is gzipped, but using RestSharp I see no signs of it.

I should add that I have tried adding different combinations of Accept, Accept-Encoding, Accept-Language and User-Agent headers to my HTTP request without it helping.

Does RestSharp somehow cause the response not be gzipped, or does it just hide it?

T. Alexander Lystad

unread,
Nov 28, 2014, 5:51:05 AM11/28/14
to rest...@googlegroups.com, tinius.alex...@gmail.com
Bump.
Reply all
Reply to author
Forward
0 new messages