1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2013 Index Data
3 * See the file LICENSE for details.
14 #include <yaz/comstack.h>
15 #include <yaz/tcpip.h>
18 static void tst_http_response(void)
21 /* response, content */
22 const char *http_buf =
23 /*123456789012345678 */
25 "Content-Length: 2\r\n"
31 ODR odr = odr_createmem(ODR_DECODE);
32 odr_setbuf(odr, (char *) http_buf, strlen(http_buf), 0);
33 r = z_GDU(odr, &zgdu, 0, 0);
37 YAZ_CHECK_EQ(zgdu->which, Z_GDU_HTTP_Response);
44 int main (int argc, char **argv)
46 YAZ_CHECK_INIT(argc, argv);
55 * c-file-style: "Stroustrup"
56 * indent-tabs-mode: nil
58 * vim: shiftwidth=4 tabstop=8 expandtab