WorldLocator Online Geocoding with client http request always return empty candidates

Discussion created by cateleu on Mar 20, 2012
Latest reply on Mar 26, 2012 by cateleu

This has puzzled me for weeks.

I'm trying to use the WorldLocator Geocode below with http request written in code

It always return empty candidates as such:

  "spatialReference" : {
    "wkid" : 4326
  "candidates" : [

If I change the URL to online geocode for NA:

It returns me with correct result. (with request parameters adjusted)

I checked the request parameters they are no different from the one sending from Browser.
Does the WorldLocator Server somehow checking certain parameter like UserAgent?

My code is attached as text.

Thanks in advance,