You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Arturo 'Buanzo' Busleiman <bu...@buanzo.com.ar> on 2007/07/23 19:35:05 UTC

adding extra bucket brigades?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi group,

My connection-level input filter needs to replace a request with another request. This "another
request" is contained, in encrypted form, in the BODY of the POST request I'm going to replace.

I've been able to use ap_save_brigade, and move all the request's bucket brigades to a ctx bucket
brigade, and use the last bucket-brigade of the request as starting point to insert the decrypted
request. The problem is, Apache expects request headers in it's own bucket, and it's own bucket
brigade. So, I can use that last bucket brigade to insert the first line of an HTTP request, but I
can't add headers.

So, I've thought I'd just use that bucket brigade to insert the first line of request (GET /blabla
HTTP/1.1\r\n), and "then", append mode bucket brigades. But HOW to actually do this is eluding me.

Any ideas?

- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
SHOW DE FUTURABANDA - Sabado 18 de Agosto 2007 (Speed King, Capital Federal)
Entradas anticipadas a traves de www.futurabanda.com.ar - Punk Rock Melodico


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGpObJAlpOsGhXcE0RCueKAJ4j7DOHskuvTaUp8keQNpa/AfETrgCfYn2g
c07P+tJmhZMLHl1jvOaL7aw=
=Rzef
-----END PGP SIGNATURE-----