How to Record HTTP Requests and POST data

Hai all..Can anyone help me to solve this issue..How to Record HTTP Requests and POST data by using java..regardsRanjith Nair
[160 byte] By [Ranjith_Nair_Calicuta] at [2007-11-26 17:37:52]
# 1
Use capturing library to get packets, detect HTTP data, do anything you want with.
Michael.Nazarov@sun.coma at 2007-7-9 0:06:02 > top of Java-index,Core,Core APIs...
# 2
hi..the packets are scatterd?how can i join the scatterd packets and make a whole http request?that's my problem...RegardsRanjith Nair
Ranjith_Nair_Calicuta at 2007-7-9 0:06:02 > top of Java-index,Core,Core APIs...
# 3

You should read about TCP and splitting data stream into packets and learn how to understand packet header to assemble stream from packets.

Actually there are few different stages:

1. detect handshake to start new empty stream within your code;

2. detect subsequent packets and assemble stream (there are counters within packet header and they will help).

After creating start of TCP stream (usually 1KB is enough) you'll be able to detect is it HTTP request/header or no and start logging or ignoring packets for this connection.

Michael.Nazarov@sun.coma at 2007-7-9 0:06:02 > top of Java-index,Core,Core APIs...