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

Re: Re:x2 Reading RAW POST data

by IlyaM (Parson)
on Dec 17, 2001 at 01:42 UTC ( #132399=note: print w/ replies, xml ) Need Help??


in reply to Re:x2 Reading RAW POST data
in thread How do I read POST data that is not encoded, and was submitted without a parameter name

Why do you think this code is fragile? It handles both unexpected end of stream (by checking if read returns zero bytes) and it handles errors (by checking if read returns undef). Timeouts should be handled by web server so unless you have some special requirements you should not care about read time.

--
Ilya Martynov (http://martynov.org/)


Comment on Re: Re:x2 Reading RAW POST data

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-12-25 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls