cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: pcap output

From: Daniel Nagy <DanielNagy_at_gmx.de>
Date: Thu, 16 Jun 2011 19:37:07 +0200

On Thu, Jun 16, 2011 at 4:26 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Thu, 16 Jun 2011, Daniel Nagy wrote:
>> I would like to ask you whether it is possible to output the network traffic
>> of curl into a .pcap file. like in :
>>
>> $ curl --pcap-out ./kernelhttp.pcap http://kernel.org/
>>
>
> No, it isn't. I wouldn't mind having such a feature though so if you're up to
> it, please write up a patch! Shouldn't be terribly hard.

I had in mind to write a more generic command wrapper like:

$ pcapout --outfile=my.pcap curl http://kernel.org/

If pcapout would be such a wrapper programm, it could wrap the system calls of curl and generate a .pcap file without the need of root-right to listen on the network interface, as the system calls of curl and other programs provide enough information to build a correct .pcap file ( i think ). the program tsocks work in such a way. It wraps every socket-system call of the program and tunnels it through a socks tunnel. Writing such a wrapper would help more people than to write a patch for curl I think. I will try to work on this and post here if I have something worth showing.

Thanks
Daniel Nagy

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-16