in reply to Re: Re: Handling XML content with HTTP::Daemonin thread Handling XML content with HTTP::Daemon
200, "Content-type: image/svg+xml\r\n\r\n".
Here was the problem...
I needed to create an HTTP::Response object explicitly and assign it a return code, content, and header information.
#new response object with default error values
my $response = new HTTP::Response( 404,undef,undef,"404 - Not found."
#assign values using obvious methods
$response->header(Content_Length => $len);
$response->header(Content_Type => "image/svg+xml");
This works now.
Thanks you all for the help.
An electronic device
Being the designated driver
Spending time with a celebrity
I never won anything
I never play the lottery
I haven't checked my spam folder recently
Results (411 votes). Check out past polls.