Hello,
I am having a pb when i curl the url localhost:9999/hello?begin-date=2000-01-01&end-date=2000-01-01 this mock :
{
"request": {
"method": "GET",
"urlPattern": "/hello",
"queryParameters": {
"begin-date": {
"matches": "2000-01-01"
},
"end-date": {
"matches": "2000-01-01"
}
}
},
"response": {
"status": 200,
"bodyFileName": "response.json",
"headers": {
"Content-Type": "application/json;charset=UTF-8"
}
}
}
The error is :
2016-03-16 12:40:25.828 Request received:
GET /hello?begin-date=2000-01-01 HTTP/1.1
User-Agent: curl/7.36.0
Host: localhost:9999
Accept: */*
2016-03-16 12:40:25.828 No mapping found matching URL /hello?begin-date=2000-01-01
2016-03-16 12:40:25.829 Not recording mapping for /hello?begin-date=2000-01-01 as this has already been received
When i try with only one parameter, it works, it seems that wiremock does not understand a url with '&' symbol. Any idea ?
Thx