Thanks for your fast response. Setting the header works already fine. But the real problem is how can i get the parameter from http://localhost:/?token=1337base64token into the header.
My usecase is i have a service which run behind my Apache httpd in the background that only support basic authentication and i have generated a base64 token which equal user:password and now i like to set them into the header. Hardcodet it works already. But how can i get the param from the uri into the header ? Regards, Michael 2011/2/21 Björn Zettergren <[email protected]> > On 02/21/2011 02:42 PM, Michael Prieß wrote: > >> Hi Apache users, >> >> i like to do some basic authentication with a simple token which is >> user:password via http get. >> >> How can i get the token which come in via "http get" into the header >> with Apache ? >> > > Try mod_headers: http://httpd.apache.org/docs/current/mod/mod_headers.html > > Although, not knowing what it is you wish to achieve in the end, i would > suspect that there is better, existing, methods for doing authentication > using for example mod_auth_basic: > http://httpd.apache.org/docs/current/mod/mod_auth_basic.html > > /Björn > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [email protected] > " from the digest: [email protected] > For additional commands, e-mail: [email protected] > >
