Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
HTTP Collector Properties
standard_settingsstandard_settingsName CollectorTick whenPUT
selecte Send Message
Define details of the HTTP request sent to the HTTP Datasource to get the data required.
The URL to be used, without the leading http:// prefix. The URL may contain embedded expressions within { }. If this field is blank, the url field on the httpDatasourceInstance is used directly.
For Example, this expression adds to the base url provided by the HTTP Datasource Instance :
{_url}/sub1/sub2?param1=3
The username and password for the HTTP Datasource Instance are available as %USERNAME% and %PASSWORD%.
The data will be encoded using the charset parameter specified by the Content-Type Header if one is present. If no Content-Type Header is set then ISO-8859-1 will be used. If the Content-Type header is set, but does not specify a charset then PhixFlow will use a default character set dependant on the content type with standard addaddDefine :HTML: response type allows an XPath Expression to be specified in order to retrieve just specified sections of the data into XML structuresString will return the full data as a string value.Please see Response Examples for how the returned data can be used and evaluated in the corresponding stream attribute expressions.
Note that the namspace prefix used here 'h' must be configured in the HTTP XML Namspaces form
This XPath xpath subelements. i.e<root xmlns:h="http://www.w3.org/TR/html4/"> <main page="PF Main Page" > <h:title h:name="PF Title">PF Title Text <h:datarow> <h:data h:initials="AD">Ali Dawson</h:data> <h:data h:initials="GP">Gary Parden</h:data> </h:datarow> </h:title> </main> </root>
xpaths stream text valuevalue -> returns 'PF Title Text'Xpath element attibutes: in.h$name h$datarowh$datah$initialsADGPh$datarowh$dataAli Dawson,Gary Parden$
instead of our usual : namespace notation^
parent element.Note that namspaces XPath subelements. i.e<html> <body nodename="Html Body"> <table> <tbody> <tr> <td initials="AD">Ali Dawson</td> <td initials="GP">Gary Parden</td> </tr> </tbody> </table> </body> </html>
stream ADGPAli Dawson,Gary Parden the stream attribute expressions.