Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 70337
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: vendion [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: POD out of date for https() enviroment variable
Date: Thu, 18 Aug 2011 09:35:15 -0400
To: bug-CGI.pm [...] rt.cpan.org
From: Adam Jimerson <vendion [...] gmail.com>
In the POD for feteching enviroment variables in CGI it refferences a https() subroutine which is identical to http() but for SSL. Calling it though returns an error about undefined subroutine main::https(). Was this functionality removed in CGI? This happens with CGI.pm-3.55 and CGI.pm-3.52 Perl 5.10.1 and Perl 5.14.1.
CC: undisclosed-recipients:;, Adam Jimerson via RT <bug-cgi.pm [...] rt.cpan.org>
Subject: Re: [rt.cpan.org #70337] POD out of date for https() enviroment variable
Date: Thu, 18 Aug 2011 10:43:08 -0400
To: bug-CGI.pm [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
How did you call it? CGI::https()? CGI->https()? $q->https()? https()? I'm guessing you used the last style, but didn't do "use CGI ':all'". I recommend the OO style (third option).
Subject: Re: [rt.cpan.org #70337] POD out of date for https() enviroment variable
Date: Thu, 18 Aug 2011 11:02:45 -0400
To: bug-CGI.pm [...] rt.cpan.org
From: Adam Jimerson <vendion [...] gmail.com>
On Thu, Aug 18, 2011 at 10:43 AM, mark@summersault.com via RT < bug-CGI.pm@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=70337 > > > How did you call it? > > CGI::https()? > > CGI->https()? > > $q->https()? > > https()? > > I'm guessing you used the last style, but didn't do "use CGI ':all'". > > I recommend the OO style (third option). > >
I called it via https() and I loaded the CGI module with :standard, because http is loaded as standard I figured https would be as well.
CC: undisclosed-recipients:;, Adam Jimerson via RT <bug-cgi.pm [...] rt.cpan.org>
Subject: Re: [rt.cpan.org #70337] POD out of date for https() enviroment variable
Date: Thu, 18 Aug 2011 11:14:16 -0400
To: bug-CGI.pm [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
Looks like even :all doesn't load https(), you would have to use :ssl. A doc-patch about this would be welcome. vim +/https `perldoc -l CGI` Mark
This issue has been copied to: https://github.com/leejo/CGI.pm/issues/89 please take all future correspondence there. This ticket will remain open but please do not reply here. This ticket will be closed when the github issue is dealt with.
commit 4f7e3d0ed16015732117149f56c532792f35c7a9 Author: Lee Johnson <lee@givengain.ch> Date: Sat Jun 28 22:27:25 2014 +0200 resolve #89 [rt.cpan.org #70337] - https method added to the :all and :standard imports, clear up documentation to explain what is imported by those and perltidy the EXPORT_TAGS hash to make it a lot clearer what is being exported