Hi, we have a very strange behaviour.

We have 2 apps:

CAS (the one from the free appliances), modified in order to receive 2
types more of authorization.
DevelApp this application sends a REST call to CAS to create a user.

This works under web2py 1.94.6 in both rocket and apache servers,
included 1.97.1 with rocket.

But using 1.97.1 on production, with apache, we don't receive the
"authorization" header.

Whe make the rest petition in this way:

    @staticmethod
    def create_user(data):
        admin_auth="admin %s" % base64.b64encode(CAS_PASSPHRASE)
        rret=rest("%s/user" % (CAS_REST),
                  method='put',
                  headers={'ACCEPT': 'application/json',
                           'CONTENT-TYPE': 'application/json',
                           'AUTHORIZATION': admin_auth},
                           data=json.dumps([{"name": data.name,
"email": data.email, "password": data.password}])
                           )

the header is called "authorization" as mandated by the standard. but
in 1.97.1 under apache, we dont receive the
"request.env.http_authorization" variable.

somebody knows why happen this?

thanks in advance

Reply via email to