Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Help with https
Hi
 
I am trying to access a secured page using the code below. The page is
accessible with firefox using the proxy at proxy.inhouse.com port 8080.
 
On doing a snoop on the data while using firefox I can see a CONNECT
being sent to the website intranet.mysecuredpage.net directed to the
proxy unencrypted  and after receiving an OK SSL handshake starts and a
client hello is being sent to the proxy. After receceiving a Server
Hello information is exchanged and the web page is received encrypted.
 
On using perl and my code below, I am not seeing the CONNECT going out.
Instead a Client Hello is immediately being sent out to the proxy from
the client running the perl code.
 
Need some advise if anybody knows about this problem.
 
Philip
 
 
 
 
#!/usr/bin/perl
use strict;
use Crypt::SSLeay;
use URI::https;
use LWP::Protocol::https;
use LWP::UserAgent;
use HTTP::Request;
my $ua = LWP::UserAgent->new(keep_alive => 1, timeout =>30);
$ua->proxy('https','https://proxy.inhouse.com:8080');
my $rq=HTTP::Request->new(GET => "https://intranet.mysecuredpage.net");
my $rsp=$ua->request($rq);
print $rsp->code;
print "\n";



Report this thread to moderator Post Follow-up to this message
Old Post
Philip Tham
12-16-04 08:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:51 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.