Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Simple http server one-liner for some static files?

by Anonymous Monk
on Dec 31, 2014 at 01:39 UTC ( #1111789=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -MHTTP::Daemon -e '$d = HTTP::Daemon->new(LocalPort => 8000) or  
    +die $!; while ($c = $d->accept) { while ($r = $c->get_request) {     
    +$c->send_file_response(".".$r->url->path) } }'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1111789]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2019-08-23 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?