<div dir="ltr">We can certainly make this process more official/easier to use, but http-client does support this. Manager has a field mTlsConnection which specifies how to create a Connection value to a TLS server. Connection is a relatively simple datatype that specifies what to do, e.g., when sending data to a server. If you wanted to log all of that writes to a file, you might do something like:<br><div><br></div><div>mOrig <- newManager tlsManagerSettings</div><div>let m = mOrig</div><div>        { mTlsConnection = \ha h p -> do</div><div>            connOrig <- mTlsConnection mOrig ha h p</div><div>            return connOrig { connectionWrite = \bs -> do</div><div>                S.appendFile "/tmp/log" bs</div><div>                connectionWrite connOrig bs</div><div>                }</div><div>        }</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 1, 2014 at 1:16 AM, Cody Goodman <span dir="ltr"><<a href="mailto:codygman.consulting@gmail.com" target="_blank">codygman.consulting@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a program that is POST'ing some data to a remote server.<br>
However, some part of the data I'm sending is wrong I believe.<br>
<br>
If this were plain http without encryption, wireshark would allow me<br>
to see the exact data being sent over the wire. However, with https it<br>
is encrypted.<br>
<br>
Is there an inbuilt way to debug requests sent by wreq or more likely,<br>
a way to output debug info for http-client?<br>
<br>
Alternatively, is there a way to use NSS support with either of these libraries:<br>
<br>
<a href="http://security.stackexchange.com/questions/35639/decrypting-tls-in-wireshark-when-using-dhe-rsa-ciphersuites" target="_blank">http://security.stackexchange.com/questions/35639/decrypting-tls-in-wireshark-when-using-dhe-rsa-ciphersuites</a><br>
<br>
Thanks in advance to all for your time.<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>