Jimmy’s Blog

Sniffing/capturing tcp data connection in Linux

by jimmy on Nov.29, 2007, under Linux

When debugging my wapsite, I want to know the header from mobile HTTP request.
It’s said from some mobile-operator, they’ll include msisdn info on HTTP header.

Now tcpflow come to rescue ^^
Just type “tcpflow -ci <your-ethernet> port <port-number>”
for example “tcpflow -ci eth0 port 80″

It’ll print on console all the request to port 80 :)

Related posts:

  1. Simple Log4J implementation

:, , , , ,

2 Comments for this entry

  • puput

    do you realy see, the msisdn in the http header

  • jimlife

    Yes, actually some operator include the MSISDN info in the header.
    Not all operator & header name is different between operators.
    For example (here in Indonesia) you can check with operator XL.

    So if you can make your wapsite recognize the MSISDN. But don’t forget to check the IP (is it really from operator), because HTTP header is easy to manipulate.

Leave a Reply

Anti-Spam Protection by WP-SpamFree

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...