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

HttpObjectIsInError

 
 

Library: Net, HTTP support (OMHTTP)
Include: omhttp.xin
Return type: Boolean
Returns: 

Returns an active switch value if an error report is available.


Declaration

  define switch function HttpObjectIsInError
     read-only stream HttpObject

Argument definitions

HttpObject
is an HTTP request or HTTP response object (input argument).


Purpose

Use HttpObjectIsInError to determine if an error was encountered during the last function called with the specified HTTP object. It can occur in either a client or a server program.

Requirements

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

  include "omhttp.xin"

Example


  ; HttpObjectIsInError
  include "omhttp.xin"

  process

     local HttpRequest my-Request
     local HttpResponse my-Response

     output "http Error Detected"
        when HttpObjectIsInError my-Request or HttpObjectIsInError my-Response

    Related Syntax
   HttpObjectGetStatusReport
 
  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.