swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
  Related Syntax     Other Library Functions  
function   HttpRequestSend    

Library: omhttp - HTTP support
Include: omhttp.xin

Declaration

  define function HttpRequestSend
              modifiable   stream  Request
     into  modifiable  stream  Response
     timeout  value       integer Timeout optional initial {10000}


Purpose

This function constructs an HTTP message from an HTTP request object and sends it from the client to the server. The function waits for the server response that is then used to populate the HTTP response object argument.

Input arguments:

Output argument:

Example:

  ; HttpRequestSend 

  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"}

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

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

Generated: August 11, 2000 at 3:07:20 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.