On Sep 19, 2014, at 3:09 PM, Alan M. Carroll <a...@network-geographics.com> 
wrote:

> TSHttpHdrHostGet
> ==================
> 
> Synopsis
> --------
> 
> `#include <ts/ts.h>`
> 
> .. c:function:: const char* TSHttpHdrHostGet(TSMBuffer bufp, TSMLoc offset, 
> int *length)
> 
> 
> Description
> -----------
> 
> Get the host for the request. :arg:`bufp` and :arg:`offset` must reference an 
> HTTP request header. A pointer to the host is returned and, if :arg:`length` 
> is not ``NULL`` the length is stored at that location.

arg must not be NULL, otherwise you can't know the length of the output

> Note the returned text may not be null terminated. The URL in the request is 
> checked first, and then the ``HOST`` header field.
> 

Reply via email to