TIdHTTP can no longer connect to password protected folder

Giganews Newsgroups
Subject: TIdHTTP can no longer connect to password protected folder
Posted by:  Michael Fullerton (fullerm@spamkiller-remove.cyber-matrix.com)
Date: Thu, 16 Oct 2003

With Indy v8 you could write code like this to get a file from a
password protected folder:

      HTTP.Request.UserName:= PasswdDlg.LoginID.Text;
      HTTP.Request.Password:= PasswdDlg.Password.Text;

  fs:= TFileStream.Create(strFName, fmCreate);
  try
    HTTP.Get(strUrl,fs);
  finally
    fs.Free;
  end;

Now I get a 401 error after upgrading to v9.0.14. Am I missing
something?

Replies