Hi all. Long time reader, first time poster. I'm hopeful that an IO::Socket::SSL expert can help me with an issue I'm having.

$sock = IO::Socket::SSL->new( PeerAddr => 'myserver.com', PeerPort => '443', SSL_verify_mode => 'SSL_VERIFY_NONE') || warn "There was a problem: ".IO::Socket::SSL::errostr();
First, I'm connecting to the server, and not verifying it. It's an internal box and, rightly or wrongly, trust it implicitly.
sub senddata { if ($debug) { print ">> @_"; } print $sock @_; }
I'm adding this to make the rest make sense. Just a routine to print to the screen if I'm doing some debugging. Now I send my headers...
$contlen=length($content); &senddata("POST /login.aspx HTTP/1.1\r\n"); &senddata("Host: myserver.com\r\n"); &senddata("Connection: keep-alive\r\n");
etc..etc... (I'm not posting content for obvious reasons) Now, here is my problem. The next header is "Referer". As soon as the webserver received an R I get "RENEGOTIATING". So, my question is. How do I send my Referer header and deal with the renegotation coming from the web server (Which happens to be MS ISS. I hope all that makes sense.

In reply to IO::Socket::SSL and handling renegotiation by Anonymous Monk

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.