postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.8k stars 839 forks source link

[Feature Request] Allow accessing network information from script section section #9689

Open praveendvd opened 3 years ago

praveendvd commented 3 years ago

Feature Request

make console network information available in script sections also, currently there is no way to retrieve network information in scripts other than response time.

Steps to Reproduce

  1. Send a request and try to access information like certificate expiry date etc.

Environment Information

StrohmyerTR commented 3 years ago

I do this all the time. As a workaround, you can use pm.sendRequest and their response objects in Pre-request and Test scripts to retrieve the values you seek. Reach out if you would like to know more...

jomel commented 3 years ago

I do this all the time. As a workaround, you can use pm.sendRequest and their response objects in Pre-request and Test scripts to retrieve the values you seek. Reach out if you would like to know more... @StrohmyerTR could you please elaborate? When I capture the response from pm.sendRequest() it does not include any Network information (eg Certificate details etc)

RickyLam11 commented 2 months ago

Any update on this issue ? Is there any way to fetch the remote IP Address in post-response script?