It almost sounds like your client is waiting for something to be sent from the other end, and the other end dosn't know if it's in send or recv mode, until it receives something. Try experimenting/forcing it with something that forces you into recv mode. One of the problems with using sockets to access a webserver is getting the send/recv right. Maybe the webserver is waiting for you to close your send connection before it returns the page. In typical sockets, you would want to have a forked client that has one branch always in recv mode listening, while the other branch is for sending. Try something like this to tell the web server you are done sending.
$client->send("\r\n"); while (1) { my $msg; if($client->connected){ $client->recv( $msg, 1024 ); print "$msg\n" } # do closing up here, a webserver won't keep an open socket for you # each connection is new }

I'm not really a human, but I play one on earth Remember How Lucky You Are

In reply to Re: Thread weirdness by zentara
in thread Thread weirdness by j0nny

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.