Solved

what is tcp and http

Posted on 2014-12-24
5
203 Views
Last Modified: 2015-02-16
Hi
I want to know what exactly is tcp and http.
As per my understanding we can make a tcp socket between two machines and send data from one machine to other using it.

Http can also be used to communicate with other machine and get response back.

Whats the difference between http and tcp.
If i want to host a service which fetches user some infirmation using http get request, can i do the same thing using tcp ?

When to use tcp and when to use http ?
0
Comment
Question by:Rohit Bajaj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 40517316
TCP is Transmission Control Protocol and HTTP is Hyper Text Transmission Protocol.  They are two of the many Internet Protocols.  http://en.wikipedia.org/wiki/Transmission_Control_Protocol

TCP along with IP is used to connect sites to each other.  HTTP is used to deliver Hyper Text which is web pages from a server to a client.  HTTP does not run by itself but runs over TCP like many other protocols do like FTP.  TCP makes the logical connection but HTTP and FTP and the others are used to transfer data over a TCP connection.

At even more basic levels you have Ethernet and network cards and the other physical items that are used to physically connect one network point to another.
0
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 40517384
>>When to use tcp and when to use http ?
You use tcp whenever you send data over a network (LAN, WAN, it does not matter).
You use http whenever you want to serve/receive a web page.

HTH,
Dan
0
 
LVL 5

Expert Comment

by:Dilip Patidar
ID: 40517479
Hello,

Please find the difference between TCP and HTTP..

http://www.differencebetween.net/technology/internet/difference-between-tcp-and-http/
0
 
LVL 57

Assisted Solution

by:giltjr
giltjr earned 250 total points
ID: 40517600
Think of networking as sending letters to people in the mail (a.k.a. snail mail).

UDP and TCP deal with the address on the outside of the envelope.  It has where it needs to go and where it came from.  

UDP is normal mail and TCP is when you request signed acknowledgement.  That is with UDP you have to assume it got to the destination.  TCP you get back something saying it got there.

HTTP is the "language" that the letter is written in and there are different "languages": FTP, SMTP, DNS, SSH, ect.

On top of that each "language" may have their own form of "grammar".  HTTP has different versions HTML as an example.
0
 

Author Comment

by:Rohit Bajaj
ID: 40565980
didnt got time to look at the posts. will look at it today or tomorow and close it if no further questions
thanks everyone
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question