HTTP status code 406 on one server, not on another -


i built java application uses apache's httpclient, , doing this:

httpget getrequest = new httpget("http://whois.arin.net/rest/ip/...");  getrequest.addheader("accept", "application/json");  httpresponse response = httpclient.execute(getrequest);  response.getstatusline().getstatuscode() ---> returns 200 , 406 

when run on local mac, works fine, when run on companies network, '406'. why run fine locally , not on companies network?

i suspect company has intercepting proxy, inspects http traffic in , out. proxy want examine actual request/response bodies. in case, proxy not understand application/json in request, refuses let pass through.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -