Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-15-2007, 04:01 AM
Member
 
Join Date: Nov 2007
Posts: 1
Rep Power: 0
lemur is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 04-05-2008, 10:32 PM
king sabri's Avatar
Member
 
Join Date: Apr 2008
Posts: 1
Rep Power: 0
king sabri is on a distinguished road
Send a message via MSN to king sabri
Default
Hi ..
Up Up

plz from all ..some one eplain this point

we need know how to know :

1\
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, 10:37 PM
Member
 
Join Date: Jul 2007
Posts: 14
Rep Power: 0
vglass is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-31-2008, 07:11 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 6,525
Rep Power: 9
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
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.

Someone helped you?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.
Help:
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.
Resources:
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.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Web:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Tips:
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.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

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

BB 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 04:05 AM
Identify Client in Socket Client Server Application masadjie Networking 1 12-20-2007 09:18 AM
sending jar files from client to server? gobinathm New To Java 2 11-13-2007 05:12 AM
Problems with client and server Albert Advanced Java 2 07-02-2007 06:07 AM
Simple example Client Server Application ferosh Networking 1 04-01-2007 10:36 AM


All times are GMT +2. The time now is 03:56 AM.



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