From owner-freebsd-questions@FreeBSD.ORG Fri Apr 7 12:09:24 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 610A416A400 for ; Fri, 7 Apr 2006 12:09:24 +0000 (UTC) (envelope-from kpielorz@tdx.co.uk) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [62.13.130.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38D8343D4C for ; Fri, 7 Apr 2006 12:09:22 +0000 (GMT) (envelope-from kpielorz@tdx.co.uk) Received: from unsupported (thebrick.dmpriest.net.uk [62.13.130.30]) by caladan.tdx.co.uk (8.13.6/8.13.6/Kp) with ESMTP id k37C9Ljd058364 for ; Fri, 7 Apr 2006 13:09:21 +0100 (BST) Date: Fri, 07 Apr 2006 13:10:37 +0100 From: Karl Pielorz To: freebsd-questions@freebsd.org Message-ID: <62E5CE298B1A036558020135@unsupported> In-Reply-To: <200604071500.27465.nvass@teledomenet.gr> References: <200604071132.05193.nvass@teledomenet.gr> <20060407112710.GF11253@sysadm.stc> <200604071500.27465.nvass@teledomenet.gr> X-Mailer: Mulberry/4.0.4 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: OT: tcp redictor with dump-(in|out)put-to-stdout capability X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 12:09:24 -0000 >> >> Why dont you wish use tcpdump? > > Cause I want to debug http, which is ASCII. Having every > tcp segment in hex and/or ASCII won't help much. > 'GET / HTTP/1.1' is much easier to read than the hexdump. > 0x4174206c6561737420666f72206d653a29 > Have you tried tcpflow? That can either dump the actual flows to files - or you can dump them to the console... If you're sending it to the console, and it might be gifs / other binary, piping it through 'strings' is usually a good idea :) -Kp