question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to start a WireMockServer with http and https without specifying a port?

See original GitHub issue

This only starts 1 the HTTPS url: var server1 = WireMockServer.Start(port: null, ssl: true); And this requires me to specify ports:

var server2 = WireMockServer.Start(new WireMockServerSettings
{
    Urls = new[] { "http://localhost:9091", "https://localhost:9443" }
});

so something like this?

var server2 = WireMockServer.Start(new WireMockServerSettings
{
    Urls = new[] { "http://localhost:null", "https://localhost:null" }
});

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
StefHcommented, Sep 21, 2022

@zidad This is not yet possible, I’ll look into this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using WireMock with HTTPs using self-signed or custom ...
WireMock can optionally accept requests over HTTPS. By default it will serve its own self-signed TLS certificate.
Read more >
How configure WireMock to use https (and a random port)?
I used a WireMockRules class and had my test classes inherit from it import static com.github.tomakehurst.wiremock.core.
Read more >
Run an API Mock Server as a Standalone Process
The WireMock server can be run in its own process, and configured via the Java API, ... This option will only work if...
Read more >
Running as a Standalone Process - WireMock
The WireMock server can be run in its own process, and configured via the Java API, ... --https-port : If specified, enables HTTPS...
Read more >
Introduction to WireMock
First, we instantiate a WireMock server: WireMockServer wireMockServer = new WireMockServer(String host, int port);. In case no arguments are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found