tags:

views:

23

answers:

1

We have a Public REST application which has a lot of GET's from the clients . We have a way to track the POST calls but we do not have a way to track where the user has come for the GET calls .

Our intention is to have some client specific business rules if we are able to decide where the call has come from ?

+1  A: 

Returning different responses to a GET based on where the request comes from is not a great idea. Could you not POST the tracking id to an endpoint and have it redirect to a GET of ResourceA for this client and ResourceB for another client.

If you only want to track the GET requests then you could use cookies to identify the client. However, I would not recommended using the cookies to drive business logic.

Darrel Miller