Forum Discussion

emiliocb4_27077's avatar
emiliocb4_27077
Icon for Nimbostratus rankNimbostratus
Feb 22, 2011

http_post trouble

hi all,

 

a client send an http post over https. The virtual server close correctly the two-way authentication.

 

The irule add username and password for basic auth with backend.

 

 

username is defined in rule_init

 

 

when HTTP_REQUEST {

 

log local0. "in client http ++++++++++++++++++"

 

foreach aHeader [HTTP::header names] {

 

log local0. "$aHeader: [HTTP::header value $aHeader]"

 

}

 

log local0. "in input ++++++++++++++++++"

 

set username $username

 

set password $username

 

append password "_pwd!_"

 

 

set auth_header "Basic [b64encode $username:$password]"

 

 

log local0. "Compongo HEADER HTTP:Authorization con username:$username e password:$password, valore $auth_header"

 

 

HTTP::header replace "Authorization" $auth_header

 

log local0. "Fine http request"

 

}

 

 

 

here the output:

 

Feb 22 06:53:25 local/tmm info tmm[5179]: Rule imei_canonical : in client http +++++++++++++++++

 

Feb 22 06:53:25 local/tmm info tmm[5179]: Rule imei_canonical : Accept-Encoding: gzip,deflate

 

Feb 22 06:53:25 local/tmm info tmm[5179]: Rule imei_canonical : Content-Type:

 

Feb 22 06:53:25 local/tmm info tmm[5179]: Rule imei_canonical : User-Agent: Jakarta Commons-HttpClient/3.1

 

Feb 22 06:53:25 local/tmm info tmm[5179]: Rule imei_canonical : Host: 192.168.49.76:9052

 

Feb 22 06:53:25 local/tmm info tmm[5179]: Rule imei_canonical : Content-Length: 0

 

Feb 22 06:53:25 local/tmm info tmm[5179]: Rule imei_canonical : in input ++++++++++++++++++

 

Feb 22 06:53:25 local/tmm info tmm[5179]: Rule imei_canonical : Compongo HEADER HTTP:Authorization con username:gtw1 e password:gtw1_pwd!_, valore Basic Z3R3MTpndHcxX3B3ZCFf

 

Feb 22 06:53:25 local/tmm info tmm[5179]: Rule imei_canonical : Fine http request

 

 

 

 

- the client receive connection reset

 

- snoop on the backend show the request but it's empty.

 

 

 

any ideas????

 

 

thanks a lot

 

 

 

 

 

No RepliesBe the first to reply