[HTTPS] How to disable User-Agent and Accept-Encoding

0 votes
asked Sep 8 by sit_sit (120 points)


  1. How to disable sending User-Agent header?
  2. How to manipulate with Accept-Encoding header (disable/only gzip/only deflate)?

1 Answer

0 votes
answered Sep 8 by Lukas Matyska (39,520 points)
edited 2 days ago by Lukas Matyska


We released the requested features in 2017 R6.1.

To disable sending User-Agent header:

request.UserAgent = null;

To manipulate Accept-Encoding header:

request.AutomaticDecompression = DecompressionMethods.None;


request.Headers[HttpRequestHeader.AcceptEncoding] = "custom-value";

The request variable can be created like this:

var creator = new HttpRequestCreator();
HttpRequest request = creator.Create("url");

or this:

HttpRequest request = (HttpRequest)WebRequest.Create("url");

Unfortunately, it is not possible to achieve this in current version.

However, it is very easy to implement it. It will be changed in the near future.

If you are interested in BETA version, please let us know.

commented Sep 9 by sit_sit (120 points)
I'm interested.
commented 2 days ago by Lukas Matyska (39,520 points)
Before I managed to send you beta version, we released the requested features publicly. Please see my updated answer for details.