swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
      Other Library Functions  
built-in variable  

HttpResponse

 
 

Library: HTTP support (OMHTTP)
Include: omhttp.xin


Purpose

The HttpResponse object is a keyed shelf that contains information that an HTTP server will return to a client after receiving a request.

Usage Notes

You can create as many instances of the HttpResponse component as you require by declaring global and local variables of type "httpResponse". To use httpResponse components in your program, you must also include the following include statement in your program:

     include "omhttp.xin"

The HTTP response shelf contains the information needed to construct an HTTP-formatted response message that an HTTP server will return to a client after receiving a request. The HTTP response shelf contains the following keyed items:

Related omhttp - HTTP support library functions:

Example


  ; HttpRequestSend
   include "omhttp.xin"
  
  process
  
     local HttpRequest my-Request
     local HttpResponse get-Response
  
     HttpRequestSetFromUrl my-Request
        from "http://www.omnimark.com/whats-new.html"
  
     HttpRequestSend my-Request into get-Response timeout 60000
  
     output get-Response{"entity-body"}

        Other Library Functions
   HttpConnectionSendResponse
   HttpLibraryVersion
   HttpObjectGetCookieAttributes
   HttpObjectGetCookieValues
   HttpObjectGetHeaders
   HttpObjectGetStatusReport
   HttpObjectIsInError
   HttpObjectSetCookieAttribute
   HttpObjectSetCookieValue
   HttpObjectSetHeader
   HttpRequest
   HttpRequestGetSearchItems
   HttpRequestSend
   HttpRequestSetFromUrl
   HttpRequestSetProxy
   HttpRequestSetSearchItem
   HttpResponse
   HttpResponseOutput
   HttpServiceAwaitRequest
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:27:39 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.