The Rest URL I'm using is "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/geocodeAddresses?addresses=%7B"records":%5B%7B"attributes":%7B"OBJECTID":1,"SingleLine":"27488 Stanford Ave, Bowden, North Dakota"%7D%7D%5D%7D&sourceCountry=USA&f=pjson&token=<myToken>". It works perfect in browser and Postman. However while I tried it in Java code, it always give me HTTP 400 code, without any additional information. I've checked request HTTP headers and compared, I don't see anything wrong in Java.
Does anybody used this Api in Java and has some idea about it?
Thank you,
Lei