Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-15-2007, 05:01 AM
Member
 
Join Date: Nov 2007
Posts: 1
lemur is on a distinguished road
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 05:08 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-05-2008, 11:32 PM
king sabri's Avatar
Member
 
Join Date: Apr 2008
Posts: 1
king sabri is on a distinguished road
Send a message via MSN to king sabri
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
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-30-2008, 11:37 PM
Member
 
Join Date: Jul 2007
Posts: 14
vglass is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-31-2008, 08:11 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,065
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Yes, using HTTP response header we can found lots of details.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
(Close on September 4, 2008)

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +3. The time now is 09:56 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org