swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Other Library Functions  
data type  

HttpRequest

 
 

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


Purpose

The HttpRequest object is a keyed shelf that contains information that can be sent to an HTTP server.

Usage Notes

You create the HttpRequest shelf by using HttpRequestSetFromUrl. A call to this function will create the necessary items for most uses. To use httpRequest components in your program, you must also include the following include statement in your program:

     include "omhttp.xin"

The HTTP request object is a keyed shelf used to create an HTTP-formatted request message, which can then be sent to an HTTP server. Most simple requests can be created using HttpRequestSetFromUrl, which will create sufficient items in the HTTP request shelf to cover most circumstances. The HTTP request shelf contains the following keyed items:

Related omhttp - HTTP support library functions:

The functions

Example

Within your program, you can create as many instances of the HttpRequest component as you require by declaring global and local variables of type "HttpRequest".

  ; HttpRequestSend
  
  local HttpRequest my-Request
  local HttpResponse get-Response
  
  HttpRequestSetFromUrl my-Request
     from "http://developers.omnimark.com/whats-new.html"
  
  HttpRequestSend my-Request into get-Response timeout 60000
  
  output get-Response{"entity-body"}

      Other Library Functions
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.