- or download this
#!/usr/bin/perl
...
select undef, undef, undef, 0.2; # FIXME your non-network stuff
checkforrequests(); # this is added to your loop
}
- or download this
wget -q -O - http://localhost:8080/CMD=changeplaylist
- or download this
got HTTP packet: GET /CMD=changeplaylist HTTP/1.1
got HTTP packet: User-Agent: Wget/1.21.1
...
got HTTP packet: Host: localhost:8080
got HTTP packet: Connection: Keep-Alive
got HTTP packet: