How can I correctly find or ignore the ? character from a request url in the RegexMatcher used via postman, not coded.
See original GitHub issueLatest stable wiremock version was downloaded and configured. I send messages to them via postman.
I configured a RegexMatcher, what is okay, if I do not send a ? in the url.
steps
- define RegexMatcher
"Pattern": "(\/some\/service\/v1\/name)([?]{1})(param.source=SYSTEM){1}([&]{1})(param.id=123457890){1}$" - do POST or PUT and configure a request / response via postman.
- check it with GET “__admin/mappings”
- send GET request to wiremock via postman. https://localhost/wiremock/some/service/v1/name?param.source=SYSTEM¶m.id=123457890
- check response message
expected result: answer arrives correctly with defined response message
actual result: exception : "ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.\
Please be specific so we can provide the best answer possible: if I not use ? in the link and change it to other character (e.g. “a-z” “0-9” + & $ ), then the same expression will work correctly
I tried ([?]{1}), ([\?]{1}) (.*{1}) ((/u003F){1}) How can I define the part from de regexp correctly ([?]{1}) to find or ignore ?
Issue Analytics
- State:
- Created 10 months ago
- Comments:5
Top Results From Across the Web
Character encoding issues in Postman (master issue) #4555
Hello everyone! Several request has been made in terms of encoding errors on get requests on Postman requests, some are old (and resolved...
Read more >Skip request based on condition (collection) - Help
I am trying to run though my API calls yet only trigger the GET requests and save the response body to a file....
Read more >How to handle URL with special characters present in ...
“Note: Parameters you enter in the URL bar or in the data editor will not automatically be URL-encoded. Right click a piece of...
Read more >Find and replace regex with capturing group - Help
$1 replace the entire match with the group. When I try to search collections using the above regex, it does not find all...
Read more >Check if an URL is valid or not using Regular Expression
Given a URL as a character string str of size N.The task is to check if the given URL is valid or not....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

okay, thank you! That"s working fine.