ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  Java Networking
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What is the purpose of HTTP tunneling?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the purpose of HTTP tunneling?
Answer
# 1
HTTP tunneling is used to encapsulate other protocols within
the HTTP or HTTPS protocols. It is typically used to pass
protocols that would normally be blocked by a firewall
through the firewall in a controlled manner.
 
Is This Answer Correct ?    3 Yes 1 No
Guest
 
  Re: What is the purpose of HTTP tunneling?
Answer
# 2
There are two types HTTP tunneling 
 1.HTTP to Port

 2.Http To CGI
 
  this concept is frequently used in RMI
 
Is This Answer Correct ?    2 Yes 0 No
Rohit Sharma
 
 
 
  Re: What is the purpose of HTTP tunneling?
Answer
# 3
http is a hyper text transfer protocol
it is used in web server to web client
it is a one kind of internet protocoils
 
Is This Answer Correct ?    0 Yes 2 No
Rajib Dhak
 
  Re: What is the purpose of HTTP tunneling?
Answer
# 4
This well-worn method is popular since it requires almost 
no setup, and works quite well in firewalled environments 
which permit you to handle HTTP through a proxy, but 
disallow regular outbound TCP connections. 
If Java RMI fails to make a normal (or SOCKS) connection to 
the intended server, and it notices that a HTTP proxy 
server is configured, it will attempt to tunnel Java RMI 
requests through that proxy server, one at a time. 

There are two forms of HTTP tunnelling, tried in order. The 
first is http-to-port; the second is http-to-cgi. 

In http-to-port tunneling, Java RMI attempts a HTTP POST 
request to a http: URL directed at the exact hostname and 
port number of the target server. The HTTP request contains 
a single Java RMI request. If the HTTP proxy accepts this 
URL, it will forward the POST request to the listening Java 
RMI server, which will recognize the request and unwrap it. 
The result of the call is wrapped in a HTTP reply, which is 
returned through the same proxy. 

Often, HTTP proxies will refuse to proxy requests to 
unusual port numbers. In this case, Java RMI will fall back 
to http-to-cgi tunneling. The Java RMI request is 
encapsulated in a HTTP POST request as before, but the 
request URL is of the form http://hostname:80/cgi-bin/java-
rmi.cgi?port=n (where hostname and n are the hostname and 
port number of the intended server). There must be a HTTP 
server listening on port 80 on the server host, which will 
run the java-rmi.cgi script (supplied with the JDK), which 
will in turn forward the request to a Java RMI server 
listening on port n. Java RMI can unwrap a HTTP-tunneled 
request without help from a http server, CGI script, or any 
other external entity. So, if the client's HTTP proxy can 
connect directly to the server's port, then you don't need 
a java-rmi.cgi script at all. 

To trigger the use of HTTP tunneling, the standard system 
property http.proxyHost must be set to the hostname of the 
local HTTP proxy. (There are reports that some Navigator 
versions do not set this property.) 

The major disadvantage of HTTP tunneling is that it does 
not permit inward calls or multiplexed connections. A 
secondary disadvantage is that the http-to-cgi method opens 
a dramatic security hole on the server side, since without 
modification it will redirect any incoming request to any 
port
 
Is This Answer Correct ?    1 Yes 0 No
Rajani Nagandla
 

 
 
 
Other Java Networking Interview Questions
 
  Question Asked @ Answers
 
What is meant by time-slicing?  4
What is IP?  2
Is it possible to send an object using Sockets, if so, how it can be? TCS1
Write the range of multicast socket IP address?  1
Is there any difference between TCP/IP and TCP?  2
What is the connection keep-alive feature of HTTP 1.1?  2
What is the purpose of HTTP tunneling?  4
What is the difference between TCP/IP and UDP?  3
What is URL?  4
What is Domain Naming Service (DNS)?  2
What is Inet address?  6
How does server know that a client is connected to it or not?  1
What is the difference between TCP and UDP ?  5
What is InetAddress? CTS2
What is meant by TCP, IP, UDP? Wipro7
What is a port?  5
 
For more Java Networking Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com