Wireshark TCP and HTTP question.


 
Thread Tools Search this Thread
Special Forums IP Networking Wireshark TCP and HTTP question.
# 1  
Old 08-28-2010
Wireshark TCP and HTTP question.

Hello all.
This is my first post and thank you for your forum.

Here is my question.

I have a simple setup at home and I was capturing some data with wireshark.
Data between a workstation and the web server, requesting a page.
Simple enough.

Now when I open wireshark, I apply the TCP only filter for both capture live data and for display data but on the display window I am also getting HTTP along with TCP.
I just need to view TCP, so I can understand sequencing, headers and so forth.
HTTP is at the application layer, why am I seeing it here? I am confused.
Help?

Here is a screenshot.

http://img685.imageshack.us/img685/1433/capturecb.jpg
# 2  
Old 08-30-2010
HTTP uses TCP for reliable transfer, flow control, etc. HTTP data is encapsulated in a TCP header (which is then encapsulated in an IP header, then an Ethernet/whatever header, on its way down the stack). Whenever you see HTTP, you should expect to see TCP.

To see this in Wireshark, select a packet marked as HTTP, then look in the middle frame of Wireshark, where the dissected packet is shown (it would be right below the picture you posted). Look through that, and you'll see both the TCP header and HTTP data. Click the plus sign next to the TCP header if that's what you want to see.
# 3  
Old 08-30-2010
Quote:
Originally Posted by squaresphere
Hello all.
This is my first post and thank you for your forum.

Here is my question.

I have a simple setup at home and I was capturing some data with wireshark.
Data between a workstation and the web server, requesting a page.
Simple enough.

Now when I open wireshark, I apply the TCP only filter for both capture live data and for display data but on the display window I am also getting HTTP along with TCP.
I just need to view TCP, so I can understand sequencing, headers and so forth.
HTTP is at the application layer, why am I seeing it here? I am confused.
Help?
TCP is a generic protocol, quite a lot of things use it. Wireshark tells them apart by what port they use -- it assumes TCP traffic on port 80 is HTTP.
# 4  
Old 09-13-2010
HTTP runs over TCP port number 80.

if you want to learn tcp, you might want to filter the trace with a single source and destination address and a single port number to see just one TCP session.
# 5  
Old 09-18-2010
yes, as what others responded on your post wireshark has lots of options for you to choose from when searching. In your case, I suggest to search for a single source or destination address as well or port specific.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk script to find time difference between HTTP PUT and HTTP DELETE requests in access.log

Hi, I'm trying to write a script to determine the time gap between HTTP PUT and HTTP DELETE requests in the HTTP Servers access log. Normally client will do HTTP PUT to push content e.g. file_1.txt and 21 seconds later it will do HTTP DELETE, but sometimes the time varies causing some issues... (3 Replies)
Discussion started by: Juha
3 Replies

2. Programming

Problem and question with TCP

Hi guys , i write this message for a doubt, a time ago i wrote a client/server program with TCP/IP in Linux. When i tested the program flooding the server with messages of 1024 bytes (Or 1025 bytes i dont remember exactly the number but was more that 1000 bytes) in certain point a message was... (5 Replies)
Discussion started by: Kovalevski
5 Replies

3. Solaris

Too much TCP retransmitted and TCP duplicate on server Oracle Solaris 10

I have problem with oracle solaris 10 running on oracle sparc T4-2 server. Os information: 5.10 Generic_150400-03 sun4v sparc sun4v Output from tcpstat.d script TCP bytes: out outRetrans in inDup inUnorder 6833763 7300 98884 0... (2 Replies)
Discussion started by: insatiable1610
2 Replies

4. Web Development

HTTP Headers Reference: HTTP Status-Codes

Hypertext Transfer Protocol -- HTTP/1.1 for Reference - HTTP Headers 10 Status Code Definitions Each Status-Code is described below, including a description of which method(s) it can follow and any metainformation required in the response. (1 Reply)
Discussion started by: Neo
1 Replies

5. IP Networking

tcpdump vs. wireshark

Hi, I am trying to capture manually crafted IP packets, created using Scapy, to a pcap file that can later be replayed using tcpreplay. When using wireshark, I can successfully capture these packets and view them in wireshark. However, when using tcpdump, these packets are then shown in... (2 Replies)
Discussion started by: yotamhc
2 Replies

6. Shell Programming and Scripting

sending http url through http socket programming..

hi am senthil am developing a software to send and receive SMS using HTTP connection first of all am forming a URL and sending that URL to a remote server using my Client Program i send that url through Socket(using Send() Function) if i send more than one URL one by one using the same... (4 Replies)
Discussion started by: senkerth
4 Replies

7. Programming

sending http url through http socket programming..

hi am senthil am developing a software to send and receive SMS using HTTP connection first of all am forming a URL and sending that URL to a remote server using my Client Program i send that url through Socket(using Send() Function) if i send more than one URL one by one using the same... (0 Replies)
Discussion started by: senkerth
0 Replies

8. Programming

C & TCP question: AF_INET vs AF_UNIX

Greetings! I am attempting to write a *basic* network client in C. I have manage to create a socket but I have doubts as far as using AF_INET vs AF_UNIX. At the present time, my client runs with AF_INET. Is AF_UNIX faster across hosts using the same OS flavor (Red Hat)? What is the difference... (1 Reply)
Discussion started by: Alan Christen
1 Replies

9. Shell Programming and Scripting

php http exploit method - pbsync hack question

I'm dealing with a website that was recently blocked by the webhost because pbsync was found on the server. I'd like for someone to give me 'a tutorial' if you will or guidance on how they are able to accomplish the below scenario.. index.php consist primarily of these tables with the following... (2 Replies)
Discussion started by: phpfreak
2 Replies

10. Programming

TCP status question

There is a server and a client,when client send a message to server,server can send a reply to client. The status of server and client is ESTABLISHED.Then I halt the client,I find the server status is CLOSE_WAIT and the client status is FIN_WAIT_2. Many minutes passed,I find the the server status... (1 Reply)
Discussion started by: konvalo
1 Replies
Login or Register to Ask a Question