hi, i am facing an issue when i start the recording: the headers are not captured, can any one helps me?
l
Lee Turner
04/03/2025, 9:19 AM
Hi, could you give any more information. Are you running wiremock standalone, how are you starting it etc ?
a
AMIRA AYADI
04/03/2025, 9:24 AM
i am using the wiremock library in my java project, and when i start the recording and then stop it, in the mappings i didn't get the request headers (NB: in the target base url i have request headers) and in my code i am using wireMockServer.startRecording(targetBaseUrl);
l
Lee Turner
04/03/2025, 9:34 AM
So do you mean that the requests you make have headers in them and those headers are not appearing in the stub definitions or is it the headers in the responses that are not appearing in the stub definitions?
a
AMIRA AYADI
04/03/2025, 9:54 AM
the response headers are appearing, but the request header no
AMIRA AYADI
04/03/2025, 10:00 AM
i tried with recordSpec and i add a method to capture these request headers, it works but not from the first recording, they will be added from the 2nd one 🙂