swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax     Other Library Functions  
function  

HttpObjectGetStatusReport

 
 

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

Declaration

  define function HttpObjectGetStatusReport
           read-only  stream HttpObject
     into  modifiable stream Report

Argument definitions

HttpObject
is an HTTP request or HTTP response object (input argument).
Report
is a stream shelf in which error descriptions are stored, with one error per item. The shelf is cleared before the error messages are added (output argument).


Purpose

Use HttpObjectGetStatusReport to write to the "Report" stream argument the descriptions of any errors encountered during the last function using the specified object.

Requirements

You must include the following line at the beginning of your OmniMark program:

  include "omhttp.xin"

Usage Notes

If no errors are encountered, "Report" will contain no items. HttpObjectGetStatusReport is used in either client or server programs.

Example


  ; HttpObjectGetStatusReport
  include "omhttp.xin"

  process

     local HttpRequest my-Request
     local HttpResponse my-Response
     local stream request-Report variable
     local stream response-Report variable

     HttpObjectGetStatusReport my-Request into request-Report
     HttpObjectGetStatusReport my-Response into response-Report

     repeat over request-Report
        output "%g(request-Report)%n"
     again
     repeat over response-Report
        output "%g(response-Report)%n"
  again

    Related Syntax
   HttpObjectIsInError
 
  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 ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:18 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.