From: Adam Dickmeiss Date: Fri, 4 Oct 2013 12:45:49 +0000 (+0200) Subject: Add check for YAZ-700 X-Git-Tag: v5.0.2~13 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=33d0d214a9219e190e15779b4e4f5e31fd7946be;p=yaz-moved-to-github.git Add check for YAZ-700 --- diff --git a/test/test_solr.c b/test/test_solr.c index e4f1c74..98d06e8 100644 --- a/test/test_solr.c +++ b/test/test_solr.c @@ -330,6 +330,28 @@ void tst_decoding(void) odr_destroy(odr); #endif } + +void tst_yaz_700(void) +{ + ODR odr = odr_createmem(ODR_ENCODE); + int r; + const char *url = + "http://localhost:9036/XXX/cproxydebug-7/node102/p/105/c=content_connector" + "a=usr/pw#&? r=cfusr/cfpw p=1.2.3.4:80/www.indexdata.com/staff/"; + int use_full_host = 0; + Z_GDU *gdu_req = z_get_HTTP_Request_uri(odr, url, 0, use_full_host); + Z_HTTP_Request *hreq = gdu_req->u.HTTP_Request; + hreq->method = "GET"; + + hreq->content_buf = odr_strdup(odr, ""); + hreq->content_len = 0; + + r = z_GDU(odr, &gdu_req, 0, 0); + YAZ_CHECK(r); + odr_destroy(odr); +} + + int main(int argc, char **argv) { YAZ_CHECK_INIT(argc, argv); @@ -338,6 +360,7 @@ int main(int argc, char **argv) #endif tst_encoding(); tst_decoding(); + tst_yaz_700(); YAZ_CHECK_TERM; }