When accessing an protected directory with an URL like http://user:password@domain.com everything works fine. Using this URL with header("Location: ..."); an authentication-box pops up. Why? Do I hava to add anything to the header?
Let's see how exactly you use your header()-related code?
header("Location: $r[url2]");
where $r[url2] is http://user:passwd@domain.com
Surprise. It seems that there are different browser behaviours with regard to this.
Netscape and Mozilla accept user:password@ i location-headers, but neither IE nor Lynx does.
Does anyone know how to do this for both IE and Netscape? I could seperate username and password from the url and submit it sperately. Is there a header-Type defined for this?