AuthTrans problem
I am having a problem understanding what to do in order to insert my own
authorization credentials.
The docs state...
"AuthTrans functions get the user name and password from the headers
associated with the request."
I need to insert my own basic authorization header in the request at the beginning of the transaction and prevent the web server from making the request.
I am able to execute my AuthTrans function but I have had no luck in preventing
the web server (6.1) from requesting the credentials from the client and accepting mine.
I have tried inserting the data into the request header and the variables
such as
pblock_nvinsert("auth-user","someuser",rq->vars);
what am i missing ?
Am I even close ?
[800 byte] By [
beosnitch] at [2007-11-26 11:55:26]

# 2
Thanks for the reply motor I have also tried that with no luck in both rq->vars and rq->headers such aspblock_nvinsert("Authorization", "Basic xxxxxxxx==",rq->headers);pblock_nvinsert("Authorization", "Basic xxxxxxxx==",rq->vars);
# 3
Found the problem...
you do need to put the authorization header into rq->headers, but
authorization MUST begin with a lowercase 'a'.
It will fail if authorization begins in uppercase.
pblock_nvinsert("authorization", "Basic xxxxxxxxxxx==",rq->headers);
This is Interesting, considering when i use the 'lwp-request' program
to test the webserver and pass the header in with the '-H' option, I
always use a capital A in authorization, and it always accepts it.