Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.338.070 Times

Net::SSLeay 1.36

Company: Mike McCauley and Florian Ragwitz
Date Added: June 30, 2013  |  Visits: 472

Net::SSLeay

Report Broken Link
Printer Friendly Version


Product Homepage
Download (37 downloads)



There is a related module called Net::SSLeay::Handle included in this distribution that you might want to use instead. It has its own pod documentation.<br /><br />Net::SSLeay is a Perl module that offers some high level convenience functions for accessing web pages on SSL servers (for symmetry, the same API is offered for accessing http servers, too), an sslcat() function for writing your own clients, and finally access to the SSL api of the SSLeay/OpenSSL package so you can write servers or clients for more complicated applications.<br /><br />For high level functions it is most convenient to import them into your main namespace as indicated in the synopsis.<br /><br />Case 1 demonstrates the typical invocation of get_https() to fetch an HTML page from secure server. The first argument provides the hostname or IP in dotted decimal notation of the remote server to contact. The second argument is the TCP port at the remote end (your own port is picked arbitrarily from high numbered ports as usual for TCP). The third argument is the URL of the page without the host name part. If in doubt consult the HTTP specifications at http://www.w3c.org.<br /><br />Case 2 demonstrates full fledged use of get_https(). As can be seen, get_https() parses the response and response headers and returns them as a list, which can be captured in a hash for later reference. Also a fourth argument to get_https() is used to insert some additional headers in the request. make_headers() is a function that will convert a list or hash to such headers. By default get_https() supplies Host (to make virtual hosting easy) and Accept (reportedly needed by IIS) headers.<br /><br />Case 2b demonstrates how to get a password protected page. Refer to the HTTP protocol specifications for further details (e.g. RFC-2617).<br /><br />Case 3 invokes post_https() to submit a HTML/CGI form to a secure server. The first four arguments are equal to get_https() (note that the empty string ('') is passed as header argument). The fifth argument is the contents of the form formatted according to CGI specification. In this case the helper function make_https() is used to do the formatting, but you could pass any string. post_https() automatically adds Content-Type and Content-Length headers to the request.<br /><br />Case 4 shows the fundamental sslcat() function (inspired in spirit by the netcat utility :-). It's your swiss army knife that allows you to easily contact servers, send some data, and then get the response. You are responsible for formatting the data and parsing the response - sslcat() is just a transport.<br /><br />Case 5 is a full invocation of sslcat() which allows the return of errors as well as the server (peer) certificate.<br /><br />The $trace global variable can be used to control the verbosity of the high level functions. Level 0 guarantees silence, level 1 (the default) only emits error messages.<br /><br />SYNOPSIS<br /><br /> use Net::SSLeay qw(get_https post_https sslcat make_headers make_form);<br /><br /> ($page) = get_https('www.bacus.pt', 443, '/'); # 1<br /><br /> ($page, $response, %reply_headers)<br /> = get_https('www.bacus.pt', 443, '/', # 2<br /> make_headers(User-Agent => 'Cryptozilla/5.0b1',<br /> Referer => 'https://www.bacus.pt'<br /> ));<br /><br /> ($page, $result, %headers) = # 2b<br /> = get_https('www.bacus.pt', 443, '/protected.html',<br /> make_headers(Authorization =><br /> 'Basic ' . MIME::Base64::encode("$user:$pass",''))<br /> );<br /><br /> ($page, $response, %reply_headers)<br /> = post_https('www.bacus.pt', 443, '/foo.cgi', '', # 3<br /> make_form(OK => '1',<br /> name => 'Sampo'<br /> ));<br /><br /> $reply = sslcat($host, $port, $request); # 4<br /><br /> ($reply, $err, $server_cert) = sslcat($host, $port, $request); # 5<br /><br /> $Net::SSLeay::trace = 2; # 0=no debugging, 1=ciphers, 2=trace, 3=dump data

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Argument Demonstrates Formatting Function Functions Headers Https Https Wwwbacuspt Invocation Level Net Net Ssleay Post Https Request Response Secure Server Servers Specifications Sslcat Ssleay String
Users rating: 0/10

License: Freeware Size: 143.36 KB
USER REVIEWS
More Reviews or Write Review


NET::SSLEAY RELATED
Programming  -  Jazz Utils 1. 5. 2001
Jazz Utils - FileMaker Plugin plugin includes clipboard functions, HTML formatting (tagging) functions, functions to obtain the mouse location (x, y), cross-platform character conversion, ascii values, and FileMaker script debugging tools. The...
92.16 KB  
Database Tools  -  EffiProz Database 0.1.0
EffiProz is a database written entirely in C#. EffiProz has full-blown SQL support, including SQL Stored Procedures, Functions, and Triggers. Ideal for embedding in .Net applications. Support Silverlight 3.
2.2 MB  
Remote Computing Tools  -  HTTPS tunnel client 2.0
Secure remote access to your PC or LAN from any Internet-connected computer. The Barracuda HTTPS tunnel allows you to encrypt arbitrary TCP connections inside SSL. The HTTPS tunnel allows you to secure non-SSL aware services such as TELNET, FTP,...
22.64 KB  
Libraries  -  Crypt::SSLeay 0.51
Crypt::SSLeay is a Perl module for OpenSSL glue that provides LWP https support. SYNOPSIS lwp-request https://www.nodeworks.com use LWP::UserAgent; my $ua = new LWP::UserAgent; my $req = new HTTP::Request(GET, https://www.nodeworks.com);...
 
Modules  -  Tag Functions 1.5
WordPress 2.3alpha now includes native tagging abilities. However, there are no functions to list all available tags analagous to wp_list_categories(). This plugin's purpose is to add those functions. They are essentially a copy of category...
20.48 KB  
Programming  -  Nasal 1.0
Nasal is a language that I wrote for use in a personal project. Ostensibly it was because I was frustrated with the dearth of small-but-complete embeddable scripting languages, but of course I really wrote it because it was fun. It is still...
102.4 KB  
Libraries  -  PDL::Reduce 2.3.2
PDL::Reduce is Perl module that helps to reduce functions for PDL. Many languages have a reduce function used to reduce the rank of an N-D array by one. It works by applying a selected operation along a specified dimension. This module...
1.1 MB  
Network & Internet  -  mod_urlscheme
mod_urlscheme is an Apache 1.3/2.0/2.2 module that allows the Apache configuration author control over the scheme to use when constructing self-referential URLs. Please note that this module is different from mod_scheme, which embeds the...
14.34 KB  
Network & Internet  -  xajax 0.5 Beta 3
xajax project is an open source PHP class library for easily creating powerful PHP-driven, web-based AJAX Applications. Using xajax, you can asynchronously call PHP functions and update the content of your webpage without reloading the page....
68.61 KB  
Libraries  -  AI::Menu 0.01
AI::Menu is a Perl object that generates Tree::Nary objects from directed graphs or a description of the function set. The algorithm is not very efficient (approximately O(F^6), F being the number of functions). It is also not quite as...
6.14 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB