IHTTPTransportAdv::MaxRedirectDepth Property

[propget] HRESULT MaxRedirectDepth([out, retval] short * depth);
[propput] HRESULT MaxRedirectDepth([in] short depth);

The HTTPTransport will follow redirects returned from the server, until the number of redirects equals MaxRedirectDepth for a single request. This defaults to 5. You can set this to 0 to disable redirects.

 

Return Values

The current value of the MaxRedirectDepth property

 

Sample Code

dim t 
set t = CreateObject("pocketSOAP.HTTPTransport.2")
' disable redirects
t.MaxRedirectDepth = 0
t.send "http://example.org/", e.serialize

 

See Also

The IHTTPTransportAdv Interface | 

 

 

Copyright

Copyright © Simon Fell, 2000-2004. All rights reserved.