Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
But when I code the same thing in Perl, it fails .. unless I use an http connection.#!/bin/bash if curl "https://www.dtdns.com/api/autodns.cfm?id=skunk.dtdns.net&pw=p +assword"; then : else echo Failed fi
Anyone able to suggest what's happening here?#!/usr/bin/env perl use strict; use warnings; use LWP::Simple; if( defined(my $Response=get( "https://www.dtdns.com/api/autodns.cfm?id=skunk.dtdns.net&pw=passwor +d")) ){ print "$Response\n" } else { print "Update failed\n" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::Simple Certificate Problem
by Corion (Patriarch) on May 04, 2014 at 10:00 UTC |