-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helidon Webclient (4.0.10) is not routing the requests through proxy configured using Proxy Builder. #9022
Comments
Some observations to this issue:
|
It works if we avoid the HTTP CONNECT when it is HTTP (not HTTPs). However, I think this is an issue in MockServer, because CONNECT is also necessary with HTTP when you use authentication. They should always respond to CONNECT. I am going to open them one issue. My reproducer for test:
|
…roxy configured using Proxy Builder. helidon-io#9022 Signed-off-by: Jorge Bescos Gascon <[email protected]>
I have created an issue there: mock-server/mockserver#1890 |
@jbescos Thanks for filing a bug with mock server. Since curl and HttpURLConnection works is it possible to bypass the CONNECT used by helidon to connect to the proxy as done by curl and HttpUTLConnection (May be introducing a flag at builder level) |
…roxy configured using Proxy Builder. helidon-io#9022 Signed-off-by: Jorge Bescos Gascon <[email protected]>
I created a PR in the way @shashikumarmh77 suggested. |
…roxy configured using Proxy Builder. helidon-io#9022 Signed-off-by: Jorge Bescos Gascon <[email protected]>
…roxy configured using Proxy Builder. helidon-io#9022 Signed-off-by: Jorge Bescos Gascon <[email protected]>
…roxy configured using Proxy Builder. helidon-io#9022 Signed-off-by: Jorge Bescos Gascon <[email protected]>
…roxy configured using Proxy Builder. helidon-io#9022 Signed-off-by: Jorge Bescos Gascon <[email protected]>
…roxy configured using Proxy Builder. #9022 (#9023) 4.x: Helidon Webclient (4.0.10) is not routing the requests through proxy configured using Proxy Builder. #9022 Signed-off-by: Jorge Bescos Gascon <[email protected]>
Environment Details
Problem Description
I am trying to configure MockServer as a proxy to facilitate testing of REST requests.
In the following simplified test case, http://echo.jsontest.com/1/one is invoked. The actual endpoint returns {"1": "one"} but MockServer configured as proxy should return mocked response of {"1": "ONE"}
However, the execution results in below exception.
Steps to reproduce
curl -X PUT "http://localhost:1026/mockserver/expectation" -H 'Content-Type: application/x-www-form-urlencoded' -d '{ "httpRequest": { "method": "GET", "path": "/1/one" }, "httpResponse": {"body": {"1": "ONE"}}}'
Sample code:
ClientTest.txt
The text was updated successfully, but these errors were encountered: