VirtualBox

Changeset 73334 in vbox for trunk/include


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.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/http.h

    r69105 r73334  
    222222
    223223/**
     224 * Set follow redirects (3xx)
     225 *
     226 * @returns iprt status code.
     227 *
     228 * @param   hHttp           The HTTP client instance.
     229 * @param   cMaxRedirects   Max number of redirects to follow.  Zero if no
     230 *                          redirects should be followed but instead returned
     231 *                          to caller.
     232 */
     233RTR3DECL(int) RTHttpSetFollowRedirects(RTHTTP hHttp, uint32_t cMaxRedirects);
     234
     235/**
    224236 * Set custom headers.
    225237 *
  • trunk/include/iprt/mangling.h

    r73150 r73334  
    10861086# define RTHeapSimpleSize                               RT_MANGLER(RTHeapSimpleSize)
    10871087# define RTHttpGetFile                                  RT_MANGLER(RTHttpGetFile)
     1088# define RTHttpSetFollowRedirects                       RT_MANGLER(RTHttpSetFollowRedirects)
    10881089# define RTHttpUseSystemProxySettings                   RT_MANGLER(RTHttpUseSystemProxySettings)
    10891090# define RTIniFileCreateFromVfsFile                     RT_MANGLER(RTIniFileCreateFromVfsFile)
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