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

HttpRequestSetFromUrl

 
 

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

Declaration

  define function HttpRequestSetFromUrl
              modifiable  stream Request
     from     value       stream URL

Argument definitions

Request
is an HTTP request object.
URL
is the uniform resource locator (URL).


Purpose

Use the HttpRequestSetFromUrl function to populate several key items of the request object.

Requirements

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

  include "omhttp.xin"

Usage Notes

With HttpRequestSetFromUrl, you can set the host, port, path, and search items. By setting these items, a valid request object is created and may be sent using HttpRequestSend.

Usually, you would call HttpRequestSetFromUrl in a client program.

Example


  include "omhttp.xin"

  process
     local HttpRequest request

     ; set the host and path
     HttpRequestSetFromUrl request from
        "http://www.omnimark.com/home/home.html"

     ; set the port and two search items in addition to the host and path 
     HttpRequestSetFromUrl request from
        "http://www.omnimark.com:1080/home/home.html?name1=value1&name2=value2"

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

Copyright © Stilo Corporation, 1988-2005.