contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
function   HttpObjectGetHeaders    
  Related Syntax     Other Library Functions  

Library: HTTP
Include: omtcp.xin, omhttp.xin
Declaration

  define function HttpObjectGetHeaders
              read-only   stream   HttpObject
     into     modifiable  stream   Headers


Purpose

This function returns the names and values of all headers defined for the HTTP request or response object. The values are returned as keyed items in a stream shelf. HttpObjectGetHeaders is called usually in a server program.

Input argument:

Output argument:

Example:

  ; HttpObjectGetHeaders

  local HttpRequest my-Request
  local HttpResponse my-Response
  local stream request-Headers
  local stream response-Headers

  HttpObjectGetHeaders my-Request into request-Headers
  HttpObjectGetHeaders my-Response into response-Headers

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

    Related Syntax
   HttpObjectSetHeader
 
  Other Library Functions
   HttpConnectionSendResponse
   HttpObjectGetCookieAttributes
   HttpObjectGetCookieValues
   HttpObjectGetHeaders
   HttpObjectGetStatusReport
   HttpObjectIsInError
   HttpObjectSetCookieAttribute
   HttpObjectSetCookieValue
   HttpObjectSetHeader
   HttpRequestGetSearchItems
   HttpRequestSend
   HttpRequestSetFromUrl
   HttpRequestSetSearchItem
   HttpResponseOutput
   HttpServiceAwaitRequest
 
----  

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:07 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.