Re: HTTPS POST in perl

2006-11-29 Thread Paul Franz
What I use it HTTP and LWP::UserAgent Perl modules use LWP::UserAgent; $ua = new LWP::UserAgent; $ua->agent("AgentName/0.1 " . $ua->agent); my $cgi = new CGI(); my $post = ''; # Create a request my $req = new HTTP::Request POST => 'https://www.server.com'; $req->content_type('application/x-www

HTTPS POST in perl

2006-11-29 Thread Paul J. Sala
I created a perl script that reads in a xml file, then encodes the contents of the file into a string, opens a TCP socket over port 80, then POSTs the string to a cgi on a non-SSL webserver. Everything works fine, and here is that code: #!/usr/bin/perl use Socket; use CGI; #- open xml file an