These are chat archives for IndySockets/Indy
Request.Password. What you have to take into account is that the WWW uses many different kinds of authentication schemes (Basic, NTLM, OAuth, etc), but
Basicby default (when
TIdHTTP.Request.BasicAuthentication=True). If the server in question requires a different scheme (use the
TIdHTTP.OnSelectAuthorizationevent to find out), you will have to enable/implement it manually, depending on what it actually is. Indy has a few
IdAuthentication...units you can add to your
usesclause to enable things like
NTLM, but other schemes have to be implemented manually in your own code. As for
username:password@, it is not part of an HTTP URL itself, a browser will extract such credentials from the URL before sending the HTTP request, and then use the credentials when requested by the HTTP server, prompting the user for new credentials if none are provided or they fail (the
TIdHTTP.OnAuthorizationevent). What kind of URL are you trying to access?
TIdHTTP.OnSelectAuthoriationevent)? The actual URL is http://192.168.3.104:30000/mjpeg/stream.cgi?chn=1,
username:password@is handled separately by a web browser (and by
TIdHTTP, for that matter).