2

当 URL 根本没有受到保护时,以下工作效果很好。

string imageURL = ("https://api.blah.blah/customers/" + userID.ToString() + "/photo");
pictureBox1.LoadAsync(imageURL);

现在我们支持基本身份验证,我希望我可以简单地做到这一点:

string imageURL = ("https://username:password@api.blah.blah/customers/" + userID.ToString() + "/photo");
pictureBox1.LoadAsync(imageURL);

但我没有运气。任何帮助,将不胜感激。

4

0 回答 0