redirect with response query parameter not working as expected

120 views
Skip to first unread message

Black Hole

unread,
Mar 31, 2021, 3:20:35 AM3/31/21
to wiremock-user
When I create a request mapping for an endpoint that should redirect to http:localhost:4200/?token=someTokenValue the browser is not redirected to the localhost:4200/ and the query parameter token is lost.
I use the standalone WireMock server with the following mapping:

{
  "request": {
    "method": "GET",
    "url": "/someContextRoot/login"
  },
  "response": {
  }
}

This does work when I create a similar mock server with SOAP-UI, but I would really like to use WireMock in our project as SOAP-UI is not the greatest tool, and WireMock seems to be exactly what we need in our project, except that it does not do the redirect as we would like. Is there a way to force this query parameter on the response to be sent? I have not found any documentation on that and any help would be greatly appreciated
Reply all
Reply to author
Forward
0 new messages