node.js - How do I get the country of origin for a HTTP request? -


i form response based on country of origin of http client. how can achieve it?

httpservletrequest gives information requests

public string yourmethod(httpservletrequest request){   system.out.println( "local contry" + request.getlocale().getcountry() ); } 

note based on browser configuration, can live in , configure in india.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -