soo sorry for the sloppy formatting.. would this be considered overkill? so maybe i created a much smaller sample version of the script i'm working with .. here's the synopsis .. my script IS posting to the proxy server..however it's not being picked up by the secure server i'm posting to. in viewing the proxy log, i'm able to see that it is not passing a tunnel request. therefore no connection is established with the secure server. is there something in my code that's causing the final destination url to get dropped or corrupted?

#!E:/Perl/bin/Perl.exe --------> calling version 5.6 ################################################ use lib 'latitude/mpweb/perlnew/site/lib'; -------> script now searche +s 5.6 lib first use CGI qw(:standard); use HTTP::Request::Common qw(POST); use LWP::UserAgent; use Crypt::SSLeay; -----------------> supposed to make https work also + tried Crypt::SSLeay::MainContext with same results ################################################ $my_ua = new LWP::UserAgent; $my_ua->agent("Mozilla/4.0 " . $my_ua->agent); $protocal = "https"; ----------> whenever posting to this protocol use + proxy $proxy_url = "http://web-proxy.cos.agilent.com:8088"; --------> proxy +defined $my_ua->proxy($protocal, $proxy_url); ----------> post to proxy functi +on $query = new CGI; print $query->header(); ################################################# $userid = $query->param("UserName"); $password = $query->param("UserPwd"); ################################################# #construct request my $req = POST 'https://gc2gw1.meetingplace.net/cgi-bin/sched.exe', [FormType => 'LoginProfile', STpl => 'schedbasics_fr.tpl', FTpl => 'loginfail.tpl', UserName => $userid, UserPwd => $password, ]; $req->content_type('application/x-www-form-urlencoded'); # Pass request to the user agent and get a response back my $res = $my_ua->request($req); if ($res->is_success) { print "Request Successful: Content returned = ", $res->content, + "\n"; } else { print "Failed: ", $res->status_line, "\n"; return( 0 ); }
suggestions.. ideas.. anyone? bueller .....?

()()()()()()()()()()()()()()
"morons will occassionally say something that's right, but they say it for the wrong reason. a moron is a master of paralogism." -------------Belbo - Foucault's Pendulum
()()()()()()()()()()()()()()


In reply to POST from proxy server to https not processing tunnel request by perlsgerl

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.