# Listning to port 80?

**URL:** <https://www.ruby-forum.com/t/listning-to-port-80/91361>\
**Category:** Ruby\
**Created:** [April 7, 2007, 2:49pm UTC](https://www.ruby-forum.com/t/listning-to-port-80/91361 "2007-04-07T14:49:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [April 7, 2007, 2:49pm UTC](https://www.ruby-forum.com/t/listning-to-port-80/91361/1 "2007-04-07T14:49:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [April 7, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/listning-to-port-80/91361/2 "2007-04-07T15:34:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [April 7, 2007, 3:46pm UTC](https://www.ruby-forum.com/t/listning-to-port-80/91361/3 "2007-04-07T15:46:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [April 7, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/listning-to-port-80/91361/4 "2007-04-07T16:58:37Z")

</div>

Scott T. 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…

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [April 7, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/listning-to-port-80/91361/5 "2007-04-07T22:19:41Z")

</div>

I managed to find:

Monitoring network traffic with Ruby and Pcap

But it only works with Linux not windows ☹
