I have been trying to interact with a
Frontier:Daemon running on Windows. For test purposes I'm using the simple state_daemon.pl and state-client.pl. I'm running the client on a Linux box and the server on Windows 2000.
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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.