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.