Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Socket Server without forking?

by fmerges (Chaplain)
on Sep 14, 2007 at 08:10 UTC ( #638966=note: print w/replies, xml ) Need Help??


in reply to Socket Server without forking?

Hi,

Because for sending you forgot the \r\n, or simply \n.

print $client "Hello there\n";

Regards,

fmerges at irc.freenode.net

Replies are listed 'Best First'.
Re^2: Socket Server without forking?
by Gorby (Monk) on Sep 14, 2007 at 09:06 UTC
    still doesn't work
      This worked! Now my question is, what text do i send back to the client so that if the client is a web browser, it will be able to display what i send back? Thanks in advance for your wisdom!
        You need to send an HTTP header and then a HTML page.

        But usually you really want to use an existing webserver and CGI.

        If you really need a pure perl web server, use HTTP::Server::Simple.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://638966]
help
Chatterbox?
[Corion]: Meh. My bank removed (part of) their CSV download facilities. Now I will either have to implement a full scraper or automate the download using the HBCI interface instead (or just get a new account elsewhere...)
[Corion]: On the upside, I spend a lot of time thinking this weekend about how to actually implement rate limiting for futures, and if things work out, maybe even loading a configuration from an external file makes sense
[Corion]: I've also found some interesting invariants that I have to think/write about more. A simple rate limiter will never change the order of the input, while a limiter that allows for parallel execution will change the order. But my API currently allows for bo
[Corion]: ... for both, and I'm not sure if I want to add the cruft from the parallel API (a token that you need to hold on to while you hold the lock) to the rate limiting API too, to allow seamless up/downgrades, or not.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2017-10-23 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (277 votes). Check out past polls.

    Notices?