Akka Http Client - disable parsing of custom User-Agent header
up vote
0
down vote
favorite
When I create request using http client:
HttpRequest(uri = "http://test.host.com").addHeader(User-Agent
("aws-sdk-java/1.11.358 Windows_7/6.1 Java_HotSpot(TM)_64-Bit_Server_VM/25.121-b13 java/1.8.0_121 scala/2.12.4"))
I noticed that akka http client is parsing header to following vaule:
request List(User-Agent: aws-sdk-java/1.11.358 Windows_7/6.1 Java_HotSpot (TM) _64-Bit_Server_VM/25.121-b13 java/1.8.0_121 scala/2.12.4)
I tried following settings without success:
client.parsing.modeled-header-parsing = off
host-connection-pool.client.parsing.modeled-header-parsing = off
Does anyone know how to set user agent header with parsing disabled? I need this for AWS signature, otherwise I get signature error
Thanks!
akka-http
add a comment |
up vote
0
down vote
favorite
When I create request using http client:
HttpRequest(uri = "http://test.host.com").addHeader(User-Agent
("aws-sdk-java/1.11.358 Windows_7/6.1 Java_HotSpot(TM)_64-Bit_Server_VM/25.121-b13 java/1.8.0_121 scala/2.12.4"))
I noticed that akka http client is parsing header to following vaule:
request List(User-Agent: aws-sdk-java/1.11.358 Windows_7/6.1 Java_HotSpot (TM) _64-Bit_Server_VM/25.121-b13 java/1.8.0_121 scala/2.12.4)
I tried following settings without success:
client.parsing.modeled-header-parsing = off
host-connection-pool.client.parsing.modeled-header-parsing = off
Does anyone know how to set user agent header with parsing disabled? I need this for AWS signature, otherwise I get signature error
Thanks!
akka-http
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When I create request using http client:
HttpRequest(uri = "http://test.host.com").addHeader(User-Agent
("aws-sdk-java/1.11.358 Windows_7/6.1 Java_HotSpot(TM)_64-Bit_Server_VM/25.121-b13 java/1.8.0_121 scala/2.12.4"))
I noticed that akka http client is parsing header to following vaule:
request List(User-Agent: aws-sdk-java/1.11.358 Windows_7/6.1 Java_HotSpot (TM) _64-Bit_Server_VM/25.121-b13 java/1.8.0_121 scala/2.12.4)
I tried following settings without success:
client.parsing.modeled-header-parsing = off
host-connection-pool.client.parsing.modeled-header-parsing = off
Does anyone know how to set user agent header with parsing disabled? I need this for AWS signature, otherwise I get signature error
Thanks!
akka-http
When I create request using http client:
HttpRequest(uri = "http://test.host.com").addHeader(User-Agent
("aws-sdk-java/1.11.358 Windows_7/6.1 Java_HotSpot(TM)_64-Bit_Server_VM/25.121-b13 java/1.8.0_121 scala/2.12.4"))
I noticed that akka http client is parsing header to following vaule:
request List(User-Agent: aws-sdk-java/1.11.358 Windows_7/6.1 Java_HotSpot (TM) _64-Bit_Server_VM/25.121-b13 java/1.8.0_121 scala/2.12.4)
I tried following settings without success:
client.parsing.modeled-header-parsing = off
host-connection-pool.client.parsing.modeled-header-parsing = off
Does anyone know how to set user agent header with parsing disabled? I need this for AWS signature, otherwise I get signature error
Thanks!
akka-http
akka-http
asked Nov 8 at 10:28
Adam Rempter
161
161
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205842%2fakka-http-client-disable-parsing-of-custom-user-agent-header%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password