Basic Auth: Use Basic Authentication
setBasicAuth function causes the Akamai NetSession Interface to supply a user name and password for HTTP basic authentication when contacting the origin HTTP server.
startDLM HTML elements are already defined in this page.
Click the Start download link to run the demonstration. You can pause and restart the download. If you haven't installed the NetSession client, you'll be prompted to download and install it first.
DLMHelper.uploadEnabled = true; var url = "http://client.akamai.com/install/test-objects/basic-auth/rand-1MB.bin"; var dlm = new DLM(DLMCID, url, null, "dlmContainer", "startDLM"); dlm.downloadPath = "prompt"; dlm.setBasicAuth("netsession", "password"); dlm.originOnly = false;