Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
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 HTTP Collector will follow any HTTP redirections and returnSend Message
Define details of the HTTP request sent to the HTTP Datasource to get the data required.
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 Define :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.
Alistair
stream XPath stream h:Note |
---|
The namspace prefix used here 'h' must be configured in the XML Namespace. |
<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="AA">Alistair
Andrews
</h:data> <h:data h:initials="BB">Bert Brown</h:data> </h:datarow> </h:title> </main> </root>
xpaths stream text valuevalue Text element attibutes: in.h$name -> returns 'PF Title'Xpath h$datarowh$datah$initialsh$datarowh$data$
instead of our usual : namespace notation.<html> <body nodename="Html Body"> <table> <tbody> <tr> <td initials="AA">Alistair Andrews</td> <td initials="BB">Bert Brown</td> </tr> </tbody> </table> </body> </html>
Advanced
- Log HTTP Collector Connection Details : when ticked, PhixFlow always logs HTTP responses and requests for HTTP collectors, whatever is set here.