The steps in making a HTTP request are as follows:
- Create an HTTP request.
- Make the request.
- Check if data was returned.
- Process the data.
- Create a Engines.HTTP.HTTPRequest object using newRequest().
- Call Engines.HTTP.HTTPRequest.send() on the Engines.HTTP.HTTPRequest object.
- Check Engines.HTTP.HTTPResponse.length to see if data was returned.
- Process the data using Engines.KlipFood.process().
| Nested Object Summary | |
<static class> |
Engines.HTTP.HTTPRequest |
<static class> |
Engines.HTTP.HTTPResponse |
| Function Summary | |
function
|
clear304cache()
Clears the session history of last-modified HTTP response headers. |
Engines.HTTP.HTTPRequest
|
newRequest( <String> url )
Creates a Engines.HTTP.HTTPRequest object for making a HTTP or SSL request to a remote server. |
| Function Detail |
clear304cache
function clear304cache()
- Clears the session history of last-modified HTTP response headers.
If you have a user-configurable Klip that, based on user input, may revisit a previous URL, calling clear304cache before loading the data will ensure that the users see all data viewed the previous access.
newRequest
Engines.HTTP.HTTPRequest newRequest( <String> url )
- Creates a Engines.HTTP.HTTPRequest object for making a HTTP or SSL request to a remote server.
To make an SSL connection, specify a URL of the form "https://www.yoursite.com/path_to_data".
-
Parameters:
url - URL of site to access. [optional]
-
Returns:
-
a new Engines.HTTP.HTTPRequest object configured to use the specified URL.
|
KlipFolio 5.0 API | ||||||||
| PREV OBJECT NEXT OBJECT | FRAMES NO FRAMES | ||||||||
| SUMMARY: PROPERTY | FUNCTION | DETAIL: PROPERTY | FUNCTION | ||||||||
(c) 2008 Serence Inc. All Rights Reserved.