webd:post

Purpose

Represents the HTTP POST method.

Contains

Attributes

Attribute Description Type Default Options Use
followRedirects Whether or not to follow any redirects xs:boolean none    optional 
id Identifies the instance of the connector. Can be used in conjunction with xPath expressions to obtain the headers, parameters and cookies returned in the response to the request. xs:string none    optional 
ignoreErroredContent Whether or not to ignore any error codes xs:boolean none    optional 
timeout The sent to the server and back timeout to apply to HTTP/HTTPS requests in seconds. Overrides any default timeout settings in the mcs-config.xml file. xs:integer none    optional 
url The fully specified URL of the web server including protocol and ports xs:anyURI none    required 
version The version of the HTTP protocol to use when making the request. If not specified then HTTP 1.1 is assumed. xs:string none  1.0, 1.1  optional 

Examples

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:pipeline="http://www.volantis.com/xmlns/marlin-pipeline"
  xmlns:webd="http://www.volantis.com/xmlns/marlin-web-driver">
  <head>
    <title>webd:post</title>
  </head>
  <body>
    <pipeline:transform href="test.xsl">
      <webd:post url="http://search.yahooapis.com/ContentAnalysisService/V1/termExtraction">
        <webd:parameters>
          <webd:parameter name="appid" value="WebdPostDemo"/>
          <webd:parameter name="context"
            value="The Term Extraction Web Service provides a list of significant words or phrases
            extracted from a larger content. It is one of the technologies used in Y!Q."/>
          <webd:parameter name="query" value="search"/>
        </webd:parameters>
      </webd:post>
    </pipeline:transform>
  </body>
</html>

The test.xsl transform should contain the following code.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:uyc="urn:yahoo:cate"
  version="1.0">
  <xsl:output method="xml" indent="yes"/>
  <xsl:template match="/">
    <div xmlns="http://www.w3.org/2002/06/xhtml2">
      <ol>
        <xsl:for-each select="/uyc:ResultSet/uyc:Result">
          <li>
            <xsl:value-of select="current()"/>
          </li>
        </xsl:for-each>
      </ol>
    </div>
  </xsl:template>
</xsl:stylesheet>

Related topics