Advertisement
Advertisement
| 11.24.2007 at 12:12PM PST, ID: 22980380 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: |
#!/usr/bin/perl
use strict;
use LWP;
use LWP::UserAgent;
my $URI = 'https://client-website.com';
my $user = 'myusername';
my $pass = 'mypassword';
use LWP::UserAgent;
# CA Cert file downloaded from http://eca.orc.com/ecaroot.crt
#$ENV{HTTPS_CA_FILE}= 'c:/ca_certs/ecaroot.crt';
#$ENV{HTTPS_CA_DIR} = 'c:/ca_certs';
#$ENV{HTTPS_CERT_FILE} = "c:/certs/usercert.pem";
#$ENV{HTTPS_KEY_FILE} = "c:/certs/userkey_nopw.pem";
$ENV{HTTPS_PKCS12_FILE} = 'c:/certs/pkcs12cert.pfx';
$ENV{HTTPS_PKCS12_PASSWORD} = 'cert_password';
#$ENV{HTTPS_VERSION} = 3;
# Print SSL Debug stuff (omit this line if not debugging)
$ENV{HTTPS_DEBUG} = 1;
# define user agent
my $ua = LWP::UserAgent->new();
$ua->agent("Test/Perl/WebChecker_script");
# make request
my $request = HTTP::Request->new(GET => $URI);
# authenticate
$request->authorization_basic($user, $pass);
# except response
my $response = $ua->request($request);
# get content of response
my $content = $response->content();
# do whatever you need to do with the content here
print $content;
exit;
|