Share via


Binding to Proxy Servers Dynamically

When a cache plug-in requests that a Windows Media server either proxy or cache content from an origin server, the network data source plug-in queries the Windows Media server to determine what, if any, upstream proxy it must connect to. When the Windows Media server must route all requests through a proxy, it is considered bound to the proxy server.

Note

   The proxy configuration information can also contain the user name and password that can be specified if the upstream proxy issues an authentication challenge.

Dynamic server binding occurs when the cache proxy plug-in specifies a different proxy server and set of credentials than that for which the server is already configured. For example, the cache proxy plug-in can direct a Windows Media server to connect to a specific proxy to either force the server to prestuff content or because the proxy server already has the content cached. The ability to dynamically bind to a server is provided by the IWMSProxyContext interface. A pointer to the IWMSProxyContext interface is passed in the following methods:

  • IWMSCacheProxyCallback::OnQueryCacheMissPolicy

  • IWMSCacheProxyServer::CompareContentInformation

  • IWMSCacheProxyServer::DownloadContent

  • IWMSCacheProxyServer::GetContentInformation

See Also (General)

See Also (Visual Basic .NET)

See Also (C#)

See Also (C++)

  • IWMSCacheProxyCallback::OnQueryCacheMissPolicy

  • IWMSCacheProxyServer::CompareContentInformation

  • IWMSCacheProxyServer::DownloadContent

  • IWMSCacheProxyServer::GetContentInformation

  • IWMSProxyContextIWMSProxyContext Interface