[PATCH] wininet/test: Add tests on host value for InternetConnectW (try 3)

Hao Peng penghao at linuxdeepin.com
Thu Nov 26 06:38:13 CST 2015

overides patch 116912 and 116968.

Add a test on giving host value of InternetConnectW.
Some App fill host param with port number when calling InternetConnectionW. it would still operate successfull on IE8 and above(responses for these requests may mot be right). But they would fail in wine because failures of Domain resolving.

On windows, domain resolving will ingore the port in the host value, but these host value havng port number will been send in 
HTTP protocol; Wininet will only use the port parameter to connect to the server, no matter what filled in the host param.

use [www.winehq.org] & [test.winehq.org] for test;
Added [todo_wine] in test;
Removed unused GetLastError.

thanks Nikolay for comment, and Fracting for help.

Signed-off-by: Hao Peng <penghao at linuxdeepin.com>
 dlls/wininet/tests/http.c | 85 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20151126/107a7ece/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wininet-test-Add-tests-on-host-value-for-InternetConne.txt
Type: application/octet-stream
Size: 4073 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20151126/107a7ece/attachment.obj>

More information about the wine-patches mailing list