For a PoC I'm building I need to emulate the TRACE method in lighttpd. Using mod_magnet and lua I can reconstruct the request using the method/version/headers functions. But by doing so, the header order, case etc will be changed from the original.
Is it possible to improve upon this by accessing the raw headers, as received? Or is there a better way to achieve the desired outcome?