PHP Classes

preemptive authentication

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  preemptive authentication  >  (Un) Subscribe thread alerts  
Subject:preemptive authentication
Summary:how to support preemptive authentication
Messages:3
Author:Martin Kaiser
Date:2006-12-24 13:40:35
Update:2007-01-06 13:29:41
 

  1. preemptive authentication   Reply   Report abuse  
Picture of Martin Kaiser Martin Kaiser - 2006-12-24 13:40:35
Dear all,

I am facing the problem that the HTTP protocol client doesnt seem to support "preemptive authentication". It always waits until it receives a 401 reply and then makes the authentication and resends the request. This is causing traffic and is slowing down the request processing.

Any solution for this?

Thanks, Best regards,
Martin

  2. Re: preemptive authentication   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-12-24 18:46:01 - In reply to message 1 from Martin Kaiser
Depending on the authentication mechanism, that may not be possible because the 401 response often carries an Authorization header that provides contextual information necessary to start the authentication interaction.

What authentication mechanism do you want to use?

  3. Re: preemptive authentication   Reply   Report abuse  
Picture of Martin Kaiser Martin Kaiser - 2007-01-06 13:29:41 - In reply to message 2 from Manuel Lemos
To be honest - I dont know exactly.

Our business partner wrote me a mail that we should use preemptive authentication to minimize traffic.

The URL is

ceg-plus.com/cgi-bin/ceg/inquire.cg ...

Thanks!