Your IO::Socket::SSL, OpenSSL, Crypt::SSLeay, Firewall, Proxy, or other widget appear to have issues. Essentially you are making the SSL conn, then getting told to expect 4493 bytes of content BUT get nothing after the Content-Type Header.

It could be all sorts of things. But you have a problem. You really have very little idea of what you are doing. You don't really understand the protocols you are trying to use and manipulate via sockets, nor how to read the debug output. You want to ignore the LWP module (which does generally just work cause its author did know what they were doing) and justify it that you already have code that uses sockets. I'll give you a hint. Your code as presented looks like spagetti. It would benefit from a rewrite to use LWP and all your problems will go away. Although you have some code it does not work. It does not scale. It is not easy to maintain. Get it?

Do yourself a favour and use LWP. If that means rewriting your 'app' then that is what you should do. I have nothing more to add so don't bother replying.

cheers

tachyon


In reply to Re: Re: Re: Re: Re: How? by tachyon
in thread Problems with sending data over Socket SSL by onLOoker

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.