File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Mail Data using packets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Mail Data using packets" Watch "Mail Data using packets" New topic
Author

Mail Data using packets

v kishore
Greenhorn

Joined: Oct 23, 2010
Posts: 11
Hi forum,

I am working on packet capturing, for this i used jpcap using this i am able to get the packet data and able to convert this stream in to string format.i am getting this data for all web sites which i can open in my browser.
but i have a problem with mail contents i.e. if i access the gmail of my account then there i perform actions like read ,delete ,send mails etc.
while in this process if i check my program i am not able to get any related data from the packets that i capture .
why i am not able to extract the data for these mails but i am able to extract the data for all sites as i said.
how can i get the packet data for mails . please assist me.

Thanking you in advance.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
I think Gmail uses HTTPS; can jpcap handle that? You may wish to use a tool like WireShark that shows all traffic going in and out.
v kishore
Greenhorn

Joined: Oct 23, 2010
Posts: 11
Thanks for reply

But i try it while open the gmail in http instead of https but no luck...

Thank you.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Once Gmail is open, the AJAX communication may still use HTTPS. Have you looked at the traffic using WireShark?
v kishore
Greenhorn

Joined: Oct 23, 2010
Posts: 11
yes i looked the traffic using wireshark ,
while using wireshark for gmail i found two protocols (tcp & tlsv1) , while using the following stream options there is a text but not clear as like http related sites.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
TLS means it's using HTTPS - so it's encrypted, and there's probably no way for jpcap to get at the cleartext.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mail Data using packets
 
Similar Threads
jpcap after capturing need some analis
search algorith
How to find the mail is unread in java
extracting attachment from lotus notes through java
Setting the Type of Service (ToS) field in the IP header of a packet