2

I have the proxy supported by Postman running. I'm using this to capture requests from integration tests. I can see the requests in the history tab, but request details do not include response data, such as http code, response body etc.

If I click send, i.e. repeat the request with Postman, then this data is displayed.

I'm really confused here, since Postman is the proxy and is able to capture the request and response both, why on earth it won't bother displaying the response data, and only display details of the request?

How do I display the response to captured requests from another process??

To provide further details: I'm using the proxy, not the interceptor because I'm making calls to localhost and interceptor won't capture those.

Here is what the UI looks like, with the giant question mark showing the empty response section :) The entries in the history tab are generated by integration tests making calls to a development server running on localhost.

If I repeat the particular (currently selected) request by clicking the send button, it'll display the json response happily.

enter image description here

Postman is the latest version (as of the date and time of this post) running under WSL2 with Ubuntu 20.04

enter image description here

7
  • Can you provide images of what you can 'see' please. 😁 Commented Nov 6, 2020 at 12:34
  • Is it the interceptor that you have set up to capture the requests in history? Which version of the app is this? Commented Nov 6, 2020 at 14:18
  • 1
    @DannyDainton no, as I indicated in the question, it is not the interceptor, because interceptor does not work with requests made to localhost urls. a proxy which is explicitly configured for the client software is needed. This is the latest postman at v7.34.0 Commented Nov 6, 2020 at 14:53
  • The question is a little all over the place so it was easily missed. If you're not making these requests through the app or using the interceptor, It wouldn't have that response data in there. A static screenshot of what looks like a request that hasn't been sent doesn't really give us a lot to go on here. Can you walk through your process of getting that data in the history? Commented Nov 6, 2020 at 15:19
  • 1
    @DannyDainton I'm confused. Don't get me wrong but the Q looks pretty clear to me. I have code written in Java, which uses postman as the proxy, when making calls to localhost/api These calls appear in history as java tests run, but only the data related to request is available when I click on the calls in history tab. So postman is 'capturing' only the requests to REST endpoints, but not the response from the server, even though it is the proxy sitting in the middle, which makes it useless for capture, when it captures only half of a req/response sequence of events. Commented Nov 6, 2020 at 17:24

1 Answer 1

1

Since version 8.9, Postman now allows you to capture responses along with requests.

Not the answer you're looking for? Browse other questions tagged or ask your own question.