[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

What the the correct curl command?

Hello,

I am trying to send GET request to a the website  http://gothere.sg/maps/geo using Command Prompt via cURL like this:

curl --request GET 'http://gothere.sg/maps/geo?address=658071'

but I am just getting this result instead:
{"Status": {"code": 500, "request": "geocode"}

I had attached the html file for reference.
Your may refer to this link for reference as well:- www.surework.com/postalcode.html

Please help. Thank you.

Sam
postalcode.html
0
Sam Tan
Asked:
Sam Tan
1 Solution
 
Randy PooleCommented:
Try this:
curl --request GET 'http://gothere.sg/maps/geo?callback=&output=json&client=&sensor=false&q=658071'

Open in new window

0
 
Sam TanAuthor Commented:
Yes..this works.... BRAVO!!!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now