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]
# 1
I guess you need to insert an "Authorization" header into rq->headers, whose valueshould be say "Basic XXXX", where XXXX is the base64 encode of "user:password".
motor at 2007-7-7 12:14:03 > top of Java-index,Web & Directory Servers,Web Servers...
# 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);
beosnitch at 2007-7-7 12:14:03 > top of Java-index,Web & Directory Servers,Web Servers...
# 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.

beosnitch at 2007-7-7 12:14:03 > top of Java-index,Web & Directory Servers,Web Servers...