Listning to port 80?

Hello there,

I want to receive all the response headers I get from any browser I have
on my computer?

Could socket class handle that? or must I develop something like proxy
server to do the job?

Can somebody point me in the right direction please?

Thanks
Regards,
Jamal

···

--
Posted via http://www.ruby-forum.com/.

Are you looking to just browse them, or actually use them in a program?

Firefox has a great extension if you are looking to do the former - It's called LiveHttpHeaders.

Scott

···

On Apr 7, 2007, at 8:49 AM, Jamal Soueidan wrote:

Hello there,

I want to receive all the response headers I get from any browser I have
on my computer?

Could socket class handle that? or must I develop something like proxy
server to do the job?

Can somebody point me in the right direction please?

Thanks
Regards,
Jamal

--
Posted via http://www.ruby-forum.com/\.

Use WEBrick to serve up a resource on localhost. Dump the HTTPrequest when
it comes in, it'll contain all the headers.

Access the local resource with any of your browsers, look at the dump from
the script.

···

-----Original Message-----
From: list-bounce@example.com [mailto:list-bounce@example.com] On Behalf Of
Jamal Soueidan
Sent: Saturday, April 07, 2007 5:50 AM
To: ruby-talk ML
Subject: listning to port 80 ?

Hello there,

I want to receive all the response headers I get from any browser I have
on my computer?

Could socket class handle that? or must I develop something like proxy
server to do the job?

Can somebody point me in the right direction please?

Thanks
Regards,
Jamal

--
Posted via http://www.ruby-forum.com/.

Scott Taylor wrote:

Are you looking to just browse them, or actually use them in a program?

Firefox has a great extension if you are looking to do the former -
It's called LiveHttpHeaders.

Scott

I actually want to develop something similar to livehttpheaders using
Ruby...

···

--
Posted via http://www.ruby-forum.com/\.

I managed to find:

Monitoring network traffic with Ruby and Pcap

But it only works with Linux not windows :frowning:

···

--
Posted via http://www.ruby-forum.com/.