emartech / request-rocket

Emarsys API test tool with WSSE and Escher support
https://emartech.github.io/request-rocket/
MIT License
5 stars 6 forks source link

Port isn't included in the Host header when using escher #6

Closed itsdani closed 3 years ago

itsdani commented 3 years ago

I have tried to call http://0.0.0.0:9012 but the escher authentication failed because it expected 0.0.0.0:9012 to be in the host header, but received only 0.0.0.0

I received the following error from Escher-java: Escher auth failed: The host header does not match (provided: 0.0.0.0, expected: 0.0.0.0:9012)

itsdani commented 3 years ago

I think including the port in the host header is the default behavior of Escher, but I found out that the host header can be provided manually, and it will work correctly.