VirtualBox

Changeset 73334 in vbox for trunk/src/VBox/Runtime/tools


Ignore:
Timestamp:
Jul 23, 2018 4:52:04 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123943
Message:

IPRT: Added RTHttpSetFollowRedirects (translates to CURLOPT_FOLLOWLOCATION+CURLOPT_MAXREDIRS) and make use of it RTDbgCfg and RTHttp[.exe]. This should fix the current pdb download issues as we're getting 302 redirects from the servers. Also, changed RTHttp to return VERR_HTTP_REDIRECTED when receiving 302, 303, 307 & 308 HTTP statuses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/tools/RTHttp.cpp

    r69434 r73334  
    5656    if (RT_FAILURE(rc))
    5757        return RTMsgErrorExit(RTEXITCODE_FAILURE, "RTHttpCreate failed: %Rrc", rc);
     58    rc = RTHttpSetFollowRedirects(hHttp, 8);
     59    if (RT_FAILURE(rc))
     60        return RTMsgErrorExit(RTEXITCODE_FAILURE, "RTHttpSetFollowRedirects(,8) failed: %Rrc", rc);
    5861
    5962    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette