cli icon indicating copy to clipboard operation
cli copied to clipboard

show me the SSL certificate the server is using?

Open glyph opened this issue 7 years ago • 1 comments

It would be handy for HTTPie to show me the certificate that the server used to deliver me a response.

glyph avatar Dec 20 '16 00:12 glyph

Hey @glyph, fancy seeing you in these parts. ;)

So this is tough because HTTPie relies on Requests and you know the rest. The tl;dr is that urllib3 would have to expose that in a stable way for HTTPie to dig into (passing through Requests).

So really this needs to be a feature request on urllib3 which HTTPie can then consume (eventually).

I suspect what we'll want to do will begin around this line and store the dictionary we get back as an attribute.

Cheers! Ian

sigmavirus24 avatar Dec 20 '16 01:12 sigmavirus24