The ideal situation would be to read from the file handle <$client> until we reach a blank line. Then we are finished the header. If on the next line we find more data, then it is the POST payload.
Thnx.
Hi there,
Here is the code. I will comment it to clarify what I want to accomplish:
sub service::_handleclienten($$$$) {
my $self = shift();
my $client = shift();
my $server = shift();
my $clientip = shift();
# I want $request to contain the entire HTTP header
# GET /...
Hi there,
I have written a small programme that simulates a web server. It reads the first line of incoming requests, which is generally "GET / HTTP1.1" and delivers the requested file if it exists. I wish to modify my programme so that it can read the entire HTTP header and any POST data that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.