To start, I downloaded and installed the latest binaries of stunnel. Before starting, I modified the conf file to add the following entry:
[dor] accept=localhost:8080 connect=www.MySuperSecureSite.com:443
Then, I installed tcpTrace and set things up to Listen on port 8079 and forward to localhost:8080. Lastly, in my application, I connected to http://localhost:8079/MyPath. This would eventually forward all of the traffic to the real destination, but I was able to spy on the details in tcpTrace since that was just HTTP traffic.
After doing this, I could see where things were malformed and clean my code up to submit things in the desired format.
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.