Skip to Content
author's profile photo Former Member
Former Member

How to convert http call to tcp/ip

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 11:24 AM

    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.

    whats-the-difference-between-rfc-destination-of-ty

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.