login about faq

Is there an example for HTTP GET with JSon?

asked Apr 11 '13 at 08:30

chilkat's gravatar image

chilkat ♦♦

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.


answered Apr 11 '13 at 08:40

chilkat's gravatar image

chilkat ♦♦

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.


answered Apr 11 '13 at 13:29

blaze4218's gravatar image


Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: Apr 11 '13 at 08:30

Seen: 3,616 times

Last updated: Apr 11 '13 at 13:29

powered by OSQA