swirl
Guide to OmniMark 9   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
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.