[EMAIL PROTECTED] wrote:
Is there some way to get at the headers from the HTTP request in a WebKit servlet from a transaction? Or at all? I see a setHeader method on HTTPResponse but no header logic at all in HTTPRequest. I'm using Webware 0.8.1 (I think).
It uses CGI-style HTTP headers, like request.environ()['HTTP_HOST']
So it does. I notice though that the "Authorization" header is not getting through to my servlet. Is this an artifact of my server setup, which is Apache + mod_webkit, or is it explicitly stripped out?
Yeah, that one's a pain in the butt -- Apache strips it out. You can do something like:
RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/your/app - [env=HTTP_AUTHORIZATION:%1]
There are other ways of getting around it as well, some Apache directives (in Apache 2), or compilation options (which I think is the only way to fix it in Apache 1.3). It would be nice if mod_webkit fixed this Apache annoyance.
-- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss