Subject: | Preserving case in HTTP headers |
Date: | Thu, 23 Aug 2012 08:16:58 +0200 |
To: | bug-HTTP-Tiny [...] rt.cpan.org |
From: | Mario Ivancic <mario.ivancic [...] gmail.com> |
Hello,
I'm using HTTP-Tiny-0.022 and ActiveState Perl 5.8.7 on Windows XP.
I have web app that I need to talk to using HTTP POST method. The app use
some custom HTTP headers that are not case insensitive so it's crucial to
preserve case of headers, at least non-standard ones.
Quick hack is to change definition of list HeaderCase from 'my %HeaderCase
= (..)' to 'our %HeaderCase = (..)' and then add more headers to it like
this:
$HTTP::Tiny::Handle::
HeaderCase{'some-header'} = 'SoMe-HeadeR';
--
Best regards,
Mario.