login about faq

Is there an example for HTTP GET with JSon?

asked Apr 11 '13 at 08:30

chilkat's gravatar image

chilkat ♦♦
11.8k316358421


HTTP GET requests are the same regardless of the type of content being retrieved. The QuickGetStr method sends a GET to retrieve the content at a URL. If the content is HTML, then the QuickGetStr returns the HTML string. If the content is XML, then it returns the XML string. Likewise, if it is JSON, it returns the JSON string.

link

answered Apr 11 '13 at 08:40

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

FWIW I posted an example for http.QuickGetStr() fetching JSON data here. It shows both the client accessing a url that displays JSON and a url with query parameters for a server script that serves different JOSN data. As well as the server code for clarity. It doesn't differ from chilkat's original answer, it's just an example in case the OP doesn't already know how to use it for HTML or XML returns.

link

answered Apr 11 '13 at 13:29

blaze4218's gravatar image

blaze4218
86349

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×186
×17
×14

Asked: Apr 11 '13 at 08:30

Seen: 2,143 times

Last updated: Apr 11 '13 at 13:29

powered by OSQA