Giving an URL connection established through the function http.connection returns a map with the fields of the header.

<http.connection.getHeaderFields>    <http_connection /> !</http.connection.getHeaderFields>
Example

Obtain the map of the fields of the header of an URL connection. The function http.connection returns an URL connection and with http.conection.getHeaderFields all the fields of the header are obtained. For each entry on the map, the list of values of each field is traversed.

Copy
<xsql-script name='http_connection_ghfs'>
<body>
<set name='m_map'>
</set>

<iterator name='it' type='key'>
<in>
<m_map />
</in>
<do>
<set name='list'><map.get name='m_map'><it /></map.get></set>
</xsql-script>