in reply to Socket buffer errors
I would strongly recommend against writing a HTTP server at such a low level. There are lots of ways to implement an HTTP server in Perl, and by now I've written quite a few that accept data from sensors and data loggers, I even gave a talk on that kind of thing. In the past I've implemented them using modules such as HTTP::Server::Simple (though I wouldn't really recommend that one anymore), CGI or CGI::Fast behind lighttpd (also somewhat outdated), Plack (modern but relatively low-level), and POE (fairly big learning curve), before finally settling on Mojolicious as my favorite. If you look at the bottom of my scratchpad, you'll see I've linked a whole bunch of Mojolicious example code I've posted here, and Mojolicious::Guides::Tutorial is a good place to start.
|
---|