HttpOpenRequest: Who has to clean up lpszObjectName?
Hallo, appended test fails with builtin wininet, but succeeds with native wininet. The failing call, triggered but the ending \r, seems to be caused by the www-server side handling. www.winehq.org seems to cope with the ending \r, so the test has to be carried out on the xilinx server. Ise webupdate fails caused by this error. What function has to clean up the ending \r? Thanks -- Uwe Bonnes bon(a)elektron.ikp.physik.tu-darmstadt.de Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ---------- Index: wine/dlls/wininet/tests/http.c =================================================================== RCS file: /home/wine/wine/dlls/wininet/tests/http.c,v retrieving revision 1.13 diff -u -r1.13 http.c --- wine/dlls/wininet/tests/http.c 23 Jan 2004 22:44:26 -0000 1.13 +++ wine/dlls/wininet/tests/http.c 18 Jul 2004 20:36:28 -0000 @@ -275,10 +275,30 @@ ok((strcmp(TEST_URL_PATH,path) == 0),"path cracked wrong\n"); } +void InternetOpenRequest_test() +{ + DWORD rc; + HINTERNET hi, hic = 0, hor = 0; + const char *types[2] = { "*/*", NULL }; + hi = InternetOpenA("",0x0,0x0,0x0,0x0); + ok((hi != 0x0),"InternetOpen Failed\n"); + trace("InternetOpenA -->\n"); + hic=InternetConnectA(hi,"www.xilinx.com",0x0, 0x0, 0x0, 0x3,0x0, 0xdeadbeef); + ok((hic != 0x0),"InternetConnect Failed\n"); + trace("InternetConnect Succeeded\n"); + hor = HttpOpenRequestA(hic, "GET", + "/direct/swhelp/series6/6.2i_latestservicepack.dat\r", + "HTTP/1.0", + 0x0,types,04000000,00000000); + rc= HttpSendRequestA(hor,0x0,0x0,0x0,0x0); + ok((rc != 0x0),"HttpSendRequestA Failed\n"); +} + START_TEST(http) { winapi_test(0x10000000); winapi_test(0x00000000); InternetCrackUrl_test(); InternetOpenUrlA_test(); + InternetOpenRequest_test(); }
participants (1)
-
Uwe Bonnes