tags:

views:

26

answers:

1

Hi!

I'm using HTTP::Server::Simple::CGI for a light-weight HTTP server. That gives me a CGI object in a callback function when a HTTP request is accepted.

How can I access the incoming HTTP headers, especially non-standard headers? The environment variables are only the standard ones.

cgi->param gives me only the form parameters.

Thanks! chris

+1  A: 

It says in the documentation:

You can, if you really want, define parse_headers() and parse them raw yourself.

Kinopiko
thanks! you put me on the right way!function headers will give me the arguments without parsing for myself.regards, chris
chris