[Haskell-cafe] Debugging Wreq/http-client https requests

Cody Goodman codygman.consulting at gmail.com
Tue Nov 4 20:08:10 UTC 2014


I did end up using mitmproxy. However I didn't know about generating
my own certificate and made wreq ignore certificate settings. Your
solution is better I think, thanks.

On Mon, Nov 3, 2014 at 4:09 AM, Tomas Carnecky <tomas.carnecky at gmail.com> wrote:
> You can use mitmproxy with a self-generated certificate. That will
> work even if you can't control the URL where the app sends the
> requests to, simply add the hostname to your /etc/hosts and point it
> to 127.0.0.1.
>
> On Sat, Nov 1, 2014 at 12:16 AM, Cody Goodman
> <codygman.consulting at gmail.com> wrote:
>> I have a program that is POST'ing some data to a remote server.
>> However, some part of the data I'm sending is wrong I believe.
>>
>> If this were plain http without encryption, wireshark would allow me
>> to see the exact data being sent over the wire. However, with https it
>> is encrypted.
>>
>> Is there an inbuilt way to debug requests sent by wreq or more likely,
>> a way to output debug info for http-client?
>>
>> Alternatively, is there a way to use NSS support with either of these libraries:
>>
>> http://security.stackexchange.com/questions/35639/decrypting-tls-in-wireshark-when-using-dhe-rsa-ciphersuites
>>
>> Thanks in advance to all for your time.
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe


More information about the Haskell-Cafe mailing list