Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Not able to mock HTTPS #8

@ipkeisam

Description

@ipkeisam

i am trying to mock a soap request over https with mock4net:

server = FluentMockServer.Start(port: 8443, ssl : true);
server
.Given(
Requests
.WithUrl("/*")
.UsingPost())
.RespondWith(
Mock4Net.Core.Responses
.WithStatusCode(200)
.WithBody(soapResponse)
);
I am getting the following error when I execute the test:

An error occurred while making the HTTP request to https://localhost:8443/. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.

Any idea on what is going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions