• Following no one
  • Nothing Unseen
  • Someone Random
  • Everyone
  • Events
 

Serhii   -   Follow Person   Add Another Site   Edit
Sergi Pérez    serxipc   
Loading...
Picasa photos


Twitter
Au, anem a provar si he integrat be el twitter, el facebook i el buzz. 32 days ago
Untitled
HandBrake   29 days ago
Format Factory - Free media file format converter   34 days ago
WinFF - Free Video Converter   110 days ago
User Serhii - Stack Overflow
Comment by Serhii on How to enable wire logging for a java HttpURLConnection traffic?   23 days ago

Thanks for your effort. The problem with sniffing SSL through a proxy is that in order to view the unencrypted content the certificate trust chain must be broken. Fiddler is able to log SSL because it generates fake server certificates. If I do the same directly on our app, before it is encrypted, we will not break the certificate chain.

How to enable wire logging for a java HttpURLConnection traffic?   24 days ago

I've used Jakarta commons HttpClient in another project and I would like the same wire logging output but using the "standard" HttpUrlConnection.

I've used Fiddler as a proxy but I would like to log the traffic directly from java.

Capturing what goes by the connection input and output streams is not enough because the HTTP headers are written and consumed by the HttpUrlConnection class, so I will not be able to log the headers.

Answer by Serhii for How to enable wire logging for a java HttpURLConnection traffic?   24 days ago

I've been able to log all SSL traffic implementing my own SSLSocketFactory on top of the default one.

This worked for me because all of our connections are using HTTPS and we can set the socket factory with the method HttpsURLConnection.setSSLSocketFactory.

A more complete solution that enables monitoring on all sockets can be found at http://www.javaspecialists.eu/archive/Issue169.html Thanks to Software Monkey for pointing in the right direction of using Socket.setSocketImplFactory

Here is my not ready for production code:

serhii's shared items in Google Reader
xkcd: Freedom   18 days ago
QuirksBlog: The iPhone obsession   32 days ago

iphone === ie6

falling in love...   46 days ago

fffffound

Google Buzz
Buzz by Sergi Pérez Contreras from Google Reader   18 days ago

xkcd: Freedom - xkcd.com

Buzz by Sergi Pérez Contreras from Twitter   32 days ago

Au, anem a provar si he integrat be el twitter, el facebook i el buzz.

Buzz by Sergi Pérez Contreras from Buzz   32 days ago

Ara que el jefe s'havia acostumat a veure'm al facebook...


Learn about this site | Contact
API | Source Code
© 2008 Christopher Blizzard