次の方法で共有


Windows Media Rights Manager SDK banner art

Redirecting Requests

You can redirect requests for licenses to a different server after the initial request is received by your licensing server.

The digital rights management (DRM) component calls the Wininet API to send an HTTP request message to the Windows Media License Service, which receives the request along with other information, such as the challenge . At this point, you can redirect the request to go to a different page to get the license, which is a feature that is supported by HTTP. For example, in Microsoft Internet Information Services (IIS), you can use the Response.Redirect(URL) method to redirect the request to a URL. Wininet calls a new URL, but this URL does not get the parameters that were included with the original request. Unless the Response.Redirect(URL) method can package the parameters in the redirected request, the new URL does not get the information.

If your licensing server uses IIS version 5.0, you can use the Server.Transfer method to redirect the request. The redirection occurs on the server side and the parameters are preserved. If the license request is for nonsilent license acquisition , you can send any HTML page in the request. For example, you can send a page that has a form with the original parameters from the DRM component, which can be posted automatically when the page is loaded; the page is redirected but without using an HTTP redirect.

See Also