https://bugs.winehq.org/show_bug.cgi?id=43216
Bug ID: 43216 Summary: winhttp doesn't support the WINHTTP_OPTION_REDIRECT_POLICY option. Product: Wine Version: 2.10 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: winhttp Assignee: wine-bugs@winehq.org Reporter: leslie_alistair@hotmail.com Distribution: ---
Here is the basic code. WinHttpOpen(....) DWORD options = WINHTTP_OPTION_REDIRECT_POLICY_ALWAYS; WinHttpSetOption(session, WINHTTP_OPTION_REDIRECT_POLICY, &options, sizeof(options)); WinHttpConnect(session, L"website", 80, 0 );
WinHttpOpenRequest(connect, L"GET", L"/project", ...) WinHttpSendRequest(.....)
When the WinHttpSendRequest receives a status HTTP_STATUS_MOVED, the requested page isn't automatically loaded from the "Location" header field.
https://bugs.winehq.org/show_bug.cgi?id=43216
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|winhttp doesn't support the |winhttp fails to redirect |WINHTTP_OPTION_REDIRECT_POL |from http to https on 301 |ICY option. |error.
https://bugs.winehq.org/show_bug.cgi?id=43216
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- Can you attach a +winhttp,+tid trace?
https://bugs.winehq.org/show_bug.cgi?id=43216
--- Comment #2 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Created attachment 58515 --> https://bugs.winehq.org/attachment.cgi?id=58515 +winhttp
https://bugs.winehq.org/show_bug.cgi?id=43216
--- Comment #3 from Hans Leidekker hans@meelstraat.net --- Created attachment 58516 --> https://bugs.winehq.org/attachment.cgi?id=58516 patch
Does this patch work for you?
https://bugs.winehq.org/show_bug.cgi?id=43216
--- Comment #4 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- (In reply to Hans Leidekker from comment #3)
Created attachment 58516 [details] patch
Does this patch work for you?
Yes, with the patch it works as expected.
Thanks.
https://bugs.winehq.org/show_bug.cgi?id=43216
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |f2bb2064bfdf0e7b369f22c34d6 | |80dec6c12493c
--- Comment #5 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Fixed by http://source.winehq.org/git/wine.git/?a=commit;h=f2bb2064bfdf0e7b369f22c34d...
https://bugs.winehq.org/show_bug.cgi?id=43216
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.11.
https://bugs.winehq.org/show_bug.cgi?id=43216
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.0.x
https://bugs.winehq.org/show_bug.cgi?id=43216
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.0.x |---
--- Comment #7 from Michael Stefaniuc mstefani@winehq.org --- Removing the 2.0.x milestone from bugs included in 2.0.3.