tid has asked for the wisdom of the Perl Monks concerning the following question:
I have an interesting question that FAQ searches and O'Reilly's rodent book have been unable to help me with. As neither perl nor http are my bag normally, my question may border on the stupid side, so be warned.
I'm attempting to write a cgi script that will parse the content body of a custom crafted http request. The idea is that a very large Content-Length value is transmitted with the request, and that the content body works a bit like a data stream from the client to the cgi script.
My question is whether or not it's possible to get a file-like handle to the content body that will allow me to do things like
and if so, how would I go about it? Thoughts? Exclamations of how wrong my approach is?while ($line = <CONTENT_BODY_HANDLE>)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Skirting the edges of RFC2616 in perl...
by tachyon (Chancellor) on Dec 10, 2002 at 01:54 UTC | |
|
Re: Skirting the edges of RFC2616 in perl...
by dmitri (Priest) on Dec 10, 2002 at 01:36 UTC | |
|
Re: Skirting the edges of RFC2616 in perl...
by tid (Beadle) on Dec 10, 2002 at 02:10 UTC |