On 23.03.2015, at 14:47 , anuj chauhan <[email protected]> wrote:
> Please see if i am doing something wrong in the command below
> 
> C:\Windows\system32>curl -i -k -X POST -H "Content-Type: application/json"
> -d '{
> "wifiAccessPoints": [{"macAddress": "01:23:45:67:89:ab"}]}'
> https://location.ser
> vices.mozilla.com/v1/geolocate?key=test
> curl: (3) [globbing] bad range specification in column 2
> curl: (3) [globbing] unmatched close brace/bracket in column 18
> HTTP/1.1 400 Bad Request
> Content-Type: application/json; charset=UTF-8
> Date: Mon, 23 Mar 2015 13:41:35 GMT
> Server: nginx
> Content-Length: 134
> Connection: keep-alive
> 
> {"error": {"code": 400, "message": "Parse Error", "errors": [{"domain":
> "global"
> , "message": "Parse Error", "reason": "parseError"}]}}

This looks correct. My guess is that this a problem with the Windows version of 
curl. It might be due to newlines or problems with the quotes being used. But 
it looks like the service doesn't actually get the correct JSON.

Hanno
_______________________________________________
dev-geolocation mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-geolocation

Reply via email to