Quick question about HTTP:Authorization and auth_type

Hi,

I am using auth_type with a rewrite rule in my httpd.conf file.... a pal told me to use HTTP:Authorization instead

Quick question: whats the difference if any with "HTTP:Authorization" or AUTH_TYPE

eg:
RewriteCond %{HTTP:Authorization} ^basic [NC]
RewriteCond %{LA-U:AUTH_TYPE} ^basic$ [NC]

Thanks!
fab_man_007Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Artysystem administratorCommented:
AUTH_TYPE is a server variable, set once HTTP connection has been established
%{HTTP:header} is a common way to match any value in http header

so both rules will detect following header line:
Authorization: basic

but matching ^basic is more common then ^basic$, so the first rule will also match "Authorization: basicblabla"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
fab_man_007Author Commented:
Thanks!
fab_man_007Author Commented:
Oops, Can an administrator kindly change that grade to an A, I made a mistake and accidently put it as a C.

Nopius answered me to the point and the correct grade is an A

Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Operating Systems

From novice to tech pro — start learning today.