Closed GoogleCodeExporter closed 9 years ago
Update: GET version seems to work
(http://spatial.ala.org.au/ws/intersect/batch?fids=cl22,cl23,el773&points=-29,13
0,-27,132) POST does not
Checking our POST code now, but it used to work!
Original comment by antarcti...@gmail.com
on 18 Aug 2014 at 12:33
If it helps, the service is thinks fids and points are not supplied.
Original comment by adam.col...@gmail.com
on 18 Aug 2014 at 12:35
If that's for the API example, that's because we've noticed that the API
example does not provide fids or points!
Original comment by antarcti...@gmail.com
on 18 Aug 2014 at 12:36
Pretty sure it's not the POST code at our end. We've dropped back to the GET
version as a temporary workaround, for short enough URLs.
Original comment by antarcti...@gmail.com
on 18 Aug 2014 at 12:59
Odd. POST is working when I test it.
Original comment by adam.col...@gmail.com
on 18 Aug 2014 at 1:00
So we are POSTing to http://spatial.ala.org.au/ws/intersect/batch with a body
of (e.g.)
fids=cl22,cl23,el773&points=-29,130,-27,132
Is that wrong?
Original comment by antarcti...@gmail.com
on 18 Aug 2014 at 1:45
Can you try the POST without the content type application/json? Seems to help.
Original comment by adam.col...@gmail.com
on 18 Aug 2014 at 2:36
OK, POST without setting the Content-Type header seems to work, thanks. I've
tried our other functions that use POST operations and I think they are all OK
without this set as well. Should we be safe in leaving the content-type unset
by default (for all services)?
(We have one remaining problem with POST but I'm pretty sure it's at our end)
Original comment by antarcti...@gmail.com
on 18 Aug 2014 at 3:36
Should be safe without setting content-type.
Original comment by adam.col...@gmail.com
on 18 Aug 2014 at 3:41
Goodo, close this issue then
thanks
Original comment by antarcti...@gmail.com
on 18 Aug 2014 at 3:52
Just for future reference, Content-Type=application/json IS required for the
BIE bulk names lookup service. (Not a problem for us, we are setting it for
this service only and not others)
Original comment by antarcti...@gmail.com
on 18 Aug 2014 at 5:29
Original comment by leebel...@gmail.com
on 18 Aug 2014 at 5:34
Original issue reported on code.google.com by
antarcti...@gmail.com
on 18 Aug 2014 at 12:24