tall_man has asked for the wisdom of the Perl Monks concerning the following question:
The server understands the client and responds to requests like "get_state_name(41)", but the client gets confused by what it gets back. It seems that it can't tell where the header ends, so all my content ends up in Client-Junk.
After extensive tracing with the debugger, I found that the server is sending me lines terminated with "\r\r\n" instead of the expected "\r\n". I attempted a work-around by modifying my_readline in Net::HTTP::Methods like this (on the client side):
#$line =~ s/(\015?\012)\z// || die "Assert"; $line =~ s/(\015*\012)\z// || die "Assert";
That helped a little, but now there is another error about "unclosed token."
Does anyone know of a way to make Frontier::Daemon (or perhaps its parent HTTP::Daemon) behave correctly under Windows? I did a SuperSearch and came up empty-handed. Thanks for your help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Frontier::Daemon over-returns lines
by tall_man (Parson) on Jun 23, 2003 at 20:38 UTC |