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.

Please add Form parameter matching ( Not query parameter matching)

See original GitHub issue

Hi,

I am using WireMock 2.0.10-beta version. I didn’t see any API for Form parameter matching. Not query parameter matching. I used withQueryParam for form parameter matching and got error.

API Proposal

withFormParam("p1", equalTo("v1"));

OR

withRequestParam("p1", equalTo("v1"));  //  Work for both Query params & Form params

Thank you!

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:10
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
tomakehurstcommented, Aug 22, 2017

Yeah, sometime in the next 100 years. Happy to receive a PR, as ever 😊

1reaction
tomakehurstcommented, Oct 15, 2021

Option 2:

{
  "request" : {
    "urlPath" : "/form",
    "method" : "POST",
    "formParameters": {
      "email": {
        "matches": "tom.*@example.com"
      },
      "password": {
        "equalTo": "blah123"
      }
    }
  },
  "response" : {
    "status" : 200
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Please add Form parameter matching ( Not query ... - GitHub
Hi,. I am using WireMock 2.0.10-beta version. I didn't see any API for Form parameter matching. Not query parameter matching.
Read more >
ExtJS7: Routes with query parameters not matching
1 Answer 1 ... You can't match routes to query parameters. The Router matches based on the window.location.hash - the part of the...
Read more >
Match query parameter value which contains "=" (equality ...
Hi,. TLDR; I am not able to match a query parameter because it contains "=" sign within the value. is there a way...
Read more >
Request matching - Basics - Mock Service Worker Docs
To add a parameter to your request path use the :paramName format. Parsed parameters values is available in the req.params object of the ......
Read more >
Use targeting rules in pop-up forms and chatflows
If query parameters are specified in the rule, the query parameters will not be stripped and the full URL must be an exact...
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