Slackbot
03/11/2024, 10:09 AMTom
03/11/2024, 11:32 AMHttpClientFactory
so that’s the nuclear option if you can’t get the Apache client to play.Žiga sternad
03/11/2024, 11:54 AMcom.github.tomakehurst.wiremock.http.client.HttpClient
List<String> FORBIDDEN_REQUEST_HEADERS = List.of(TRANSFER_ENCODING, CONTENT_LENGTH, "connection", USER_AGENT);
to
List<String> FORBIDDEN_REQUEST_HEADERS = List.of(TRANSFER_ENCODING, CONTENT_LENGTH, "connection");
… and now the proper user-agent is forwarded to the server ✅
Do you know, is there a reason why this header is forbidden to be forwarded?Tom
03/11/2024, 11:55 AMTom
03/11/2024, 11:59 AMpreserveUserAgentProxyHeader
in the same fashion as preserveHostHeader
Tom
03/11/2024, 11:59 AMŽiga sternad
03/11/2024, 12:02 PMTom
03/11/2024, 12:02 PMŽiga sternad
03/11/2024, 12:10 PMTom
03/11/2024, 12:11 PMŽiga sternad
03/11/2024, 12:17 PMproxyAll
or enableBrowserProxying
or none …?Tom
03/11/2024, 12:20 PM