kenshinvnu
New Member
Is there any way to set the HTTP Basic Authorization Header in the classic asp code via my login function so that when I call an Web Api via JQuery the header is already set?I would like something like:\[code\]Public Function fcnLogin(ByVal strUSerName, ByVal strPassword) 'Login Code like checking the DB '.... If bolLogin = True Then Response.AddHeader "Authorization", "Basic MTIzOjEyMw==" End IfEnd Function\[/code\]Or is there any other Method to set a HTTP Header in classic asp to authenticate against a RESTful API?