Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert http call to tcp/ip

Former Member
0 Kudos

i created one http service using servlet but i want this connection convert into tcp/ip (using sockets) call and vice versa.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HTTP is the application layer protocol in TCP, the industry polular protocol over OSI seven layer model.

HTTP ultimately uses sockets over TCP/IP for communication. Using HTTP we communicate by using an URL which has http as the protocol, hostname, port no (normally 80 and automatically added by the browser) and the resource. Example is http: // 192.168.0.2 :80 / index.htm

In case you want to avoid using servlet, you have to write your own services in JAVA using sockets (lower level components) and also RFC.

This link may be helpful.

1 REPLY 1

Former Member
0 Kudos

HTTP is the application layer protocol in TCP, the industry polular protocol over OSI seven layer model.

HTTP ultimately uses sockets over TCP/IP for communication. Using HTTP we communicate by using an URL which has http as the protocol, hostname, port no (normally 80 and automatically added by the browser) and the resource. Example is http: // 192.168.0.2 :80 / index.htm

In case you want to avoid using servlet, you have to write your own services in JAVA using sockets (lower level components) and also RFC.

This link may be helpful.