contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
function   HttpObjectSetHeader    
  Related Syntax     Other Library Functions  

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

  define function HttpObjectSetHeader
                 modifiable  stream   HttpObject
     for         value       stream   HeaderName
     to          value       stream   HeaderValue
     append      value       switch   AppendMode  optional initial {true}


Purpose

This function sets a named header value in an HTTP request or response object. It can be called from either a client or a server program.

Input arguments:

Example:

  ; HttpObjectSetHeader

  local HttpRequest my-Request
  local HttpResponse my-Response

  HttpObjectSetHeader my-Request for "User-Agent" to "omHTTP"
  HttpObjectSetHeader my-Response for "Accept" to "*/*"

    Related Syntax
   HttpObjectGetHeaders
 
  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:08 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.