You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the feature request
Create expectations over HTTPS
What you are trying to do
After succesfully running Mockserver, I need to create expectations over HTTPS, I´ve tried to create a client with the following code:
new MockServerClient("tests.io", 443, "/test-mockserver")
But I receive the response:
Exception in thread "main" java.lang.IllegalArgumentException: <html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
</body>
</html>
at org.mockserver.client.MockServerClient.sendRequest(MockServerClient.java:402)
As my server resides in a Cloud environment where it can only accept HTTPS traffic
The solution you'd like
When creating the Mockserver Client, add a flag to indicate to accept secure connections
Describe alternatives you've considered
I´ve tried enabling TLS but haven´t found a clear example.
The text was updated successfully, but these errors were encountered:
Describe the feature request
Create expectations over HTTPS
What you are trying to do
After succesfully running Mockserver, I need to create expectations over HTTPS, I´ve tried to create a client with the following code:
new MockServerClient("tests.io", 443, "/test-mockserver")
But I receive the response:
As my server resides in a Cloud environment where it can only accept HTTPS traffic
The solution you'd like
When creating the Mockserver Client, add a flag to indicate to accept secure connections
Describe alternatives you've considered
I´ve tried enabling TLS but haven´t found a clear example.
The text was updated successfully, but these errors were encountered: