Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Identifying client details

 
sandeep Thandu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to identify the client application type invoking a web service.
can I able to determine the client as a web service/stand alone client at the service side using client request.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Define "client application type"; it's not a generally understood term. Do you mean some HTTP header like User-Agent? Note that those are subject to client-side tampering.
 
sandeep Thandu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Define "client application type"; it's not a generally understood term. Do you mean some HTTP header like User-Agent? Note that those are subject to client-side tampering.


I want to find if client itself is a web service or not. I referred Http headers and Tcp details but could not able to tell what exactly is client type.
I only have client ip address but In my project I should also able to say that client who invoked myservice is a web service or not.

Thanks
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HTTP looks the same, no matter what kind of code performs the request. If you don't have control over the client (and thus can set an HTTP header, or pass a parameter), then there's no way to do this.
 
sandeep Thandu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:The HTTP looks the same, no matter what kind of code performs the request. If you don't have control over the client (and thus can set an HTTP header, or pass a parameter), then there's no way to do this.


Thanks for help.
I am assuming that i will have control over client(Inra Organization)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic