#include <yaz/yaz-version.h>
#include <yaz/yaz-iconv.h>
#include <yaz/matchstr.h>
#include <yaz/yaz-version.h>
#include <yaz/yaz-iconv.h>
#include <yaz/matchstr.h>
break;
}
*headers = (Z_HTTP_Header *) odr_malloc(o, sizeof(**headers));
(*headers)->name = (char*) odr_malloc(o, i - po + 1);
break;
}
*headers = (Z_HTTP_Header *) odr_malloc(o, sizeof(**headers));
(*headers)->name = (char*) odr_malloc(o, i - po + 1);
(*headers)->value[i - po] = '\0';
if (!yaz_strcasecmp((*headers)->name, "Transfer-Encoding")
(*headers)->value[i - po] = '\0';
if (!yaz_strcasecmp((*headers)->name, "Transfer-Encoding")
!yaz_strcasecmp((*headers)->value, "chunked"))
chunked = 1;
headers = &(*headers)->next;
!yaz_strcasecmp((*headers)->value, "chunked"))
chunked = 1;
headers = &(*headers)->next;
i++;
return decode_headers_content(o, i, &hr->headers,
&hr->content_buf, &hr->content_len);
i++;
return decode_headers_content(o, i, &hr->headers,
&hr->content_buf, &hr->content_len);
sprintf(sbuf, "HTTP/%s %d %s\r\n", hr->version,
hr->code,
sprintf(sbuf, "HTTP/%s %d %s\r\n", hr->version,
hr->code,
if (o->direction == ODR_PRINT)
{
odr_printf(o, "-- HTTP response:\n");
if (o->direction == ODR_PRINT)
{
odr_printf(o, "-- HTTP response:\n");
if (o->direction == ODR_PRINT)
{
odr_printf(o, "-- HTTP request:\n");
if (o->direction == ODR_PRINT)
{
odr_printf(o, "-- HTTP request:\n");