Results 1 to 4 of 4
  1. #1
    lemur is offline Member
    Join Date
    Nov 2007
    Posts
    1
    Rep Power
    0

    Default how client know what kind of server

    Can a client java program know what kind of server it is running in web?

    example:

    http:// www. page . com is running in apache.

    the client connect:
    URL pagserver=new URL("http://www.page.com");
    or
    socket socketclient=new socket(www.page.com,8080);

    => server is APACHE or JETTY , etc.....

    How to know?





    note: examples:Webserver Search
    -What's that site running?...-
    Netcraft
    Last edited by lemur; 11-15-2007 at 04:08 AM.

  2. #2
    king sabri's Avatar
    king sabri is offline Member
    Join Date
    Apr 2008
    Posts
    1
    Rep Power
    0

    Default

    Hi ..
    Up Up

    plz from all ..some one eplain this point

    we need know how to know :

    1\
    Quote Originally Posted by lemur View Post
    Can a client java program know what kind of server it is running in web?

    example:

    http:// www. page . com is running in apache.

    the client connect:
    URL pagserver=new URL("http://www.page.com");
    or
    socket socketclient=new socket(www.page.com,8080);

    => server is APACHE or JETTY , etc.....

    How to know?

    note: examples:Webserver Search
    -What's that site running?...-
    Netcraft
    2\
    The operating system of the server or the remote host


    3\
    The domains Or the web sites that the server hosts its

    I mean the program work like domaintools.com


    thanks for all

  3. #3
    vglass is offline Member
    Join Date
    Jul 2007
    Posts
    14
    Rep Power
    0

    Default

    This is typically returned as part of the HTTP response headers. For example:

    HTTP/1.1 200 OK
    Date: Fri, 30 May 2008 19:50:29 GMT
    Server: Apache/2.2.4 (Fedora)
    Accept-Ranges: bytes
    Connection: close
    Content-Type: text/html

    In this case, look at the "Server" header which shows this server is running Apache.

    You can get this from a raw socket connection by sending "GET /" command to server followed by a CRLF.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. how to send .jar files client to server
    By gobinathm in forum Networking
    Replies: 1
    Last Post: 12-25-2007, 04:05 AM
  2. Identify Client in Socket Client Server Application
    By masadjie in forum Networking
    Replies: 1
    Last Post: 12-20-2007, 09:18 AM
  3. sending jar files from client to server?
    By gobinathm in forum New To Java
    Replies: 2
    Last Post: 11-13-2007, 05:12 AM
  4. Problems with client and server
    By Albert in forum Advanced Java
    Replies: 2
    Last Post: 07-02-2007, 06:07 AM
  5. Simple example Client Server Application
    By ferosh in forum Networking
    Replies: 1
    Last Post: 04-01-2007, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •