-#if HTTP_DEBUG
- fprintf(stderr, "HTTP request:\n%.*s\n", o->top, o->buf);
-#endif
- break;
- case Z_GDU_Z3950:
- return z_APDU(o, &(*p)->u.z3950, opt, 0);
- }
- }
- else if (o->direction == ODR_PRINT)
- {
- switch((*p)->which)
- {
- case Z_GDU_HTTP_Response:
- fprintf (stderr, "not implemented");
- break;
- case Z_GDU_HTTP_Request:
- fprintf (stderr, "not implemented");
+ if (o->direction == ODR_PRINT)
+ {
+ fprintf(o->print, "-- HTTP request:\n%.*s\n", o->top, o->buf);
+ }