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?
 
NopiusCommented:
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"

0
 
fab_man_007Author Commented:
Thanks!
0
 
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!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.