http://bugs.winehq.org/show_bug.cgi?id=14183
--- Comment #1 from Yann Droneaud yann@droneaud.fr 2008-06-29 13:37:08 --- Created an attachment (id=14455) --> (http://bugs.winehq.org/attachment.cgi?id=14455) Load cookie in HTTP_HttpSendRequest() instead of HTTP_HttpOpenRequest()
Here is a patch which fix my problem, by moving cookie fetch code from HTTP_HttpOpenRequestW() to HTTP_HttpSendRequestW().
The patch must be reviewed with care, it was only tested with the application described above.
Note that loading the cookies inside the loop of HTTP_HttpSendRequestW() could help to use cookies set by the server in a redirect error, see bug #3307 .