Re: Determine http or https in CGI perl

2011-10-03 Thread Shlomi Fish
Hi Ram, On Tue, 4 Oct 2011 11:34:16 +0530 Ramprasad Prasad wrote: > In my cgi program .. I want to know if the user is accessing via HTTP or > HTTPS. > > How can I do this ? > A quick Google search yielded this link: http://stackoverflow.com/questions/5223341/how-do-i-identify-the-protocol-h

Determine http or https in CGI perl

2011-10-03 Thread Ramprasad Prasad
In my cgi program .. I want to know if the user is accessing via HTTP or HTTPS. How can I do this ? -- Thanks Ram n

Re: How to use a CGI/PERL hash variable in java script.

2010-02-07 Thread Peter Scott
On Mon, 01 Feb 2010 23:19:27 -0800, venu madhav wrote: > Hi All, > I've a situation where I create a hash variable in PERL and > use it in Java script which is embedded in the CGI. The key for that > hash is taken from JavaScript. For ex: > > - CGI code > my %hash{3}=300; > --

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Shlomi Fish
Hi Erez! On Tuesday 02 Feb 2010 15:20:16 Erez Schatz wrote: > On 2 February 2010 15:06, Shlomi Fish wrote: > > Ahmm... no. > > Are you physically unable to say anything in a social manner? > I apologise for writing my posts in a rude manner. See below for my response. > > <<< > > my %hash = (

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Erez Schatz
On 2 February 2010 15:06, Shlomi Fish wrote: > > Ahmm... no. Are you physically unable to say anything in a social manner? > > <<< > my %hash = (3 => <<"EOF"); > > > > > This is called a cross-site scripting attack ( > http://en.wikipedia.org/wiki/Cross-site_s

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Shlomi Fish
On Tuesday 02 Feb 2010 14:12:01 Erez Schatz wrote: > On 2 February 2010 09:19, venu madhav wrote: > >I've a situation where I create a hash variable in PERL and > > use it in Java script which is embedded in the CGI. The key for that > > hash is taken from JavaScript. For ex: > > > >

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Shlomi Fish
On Tuesday 02 Feb 2010 14:00:26 Erez Schatz wrote: > On 2 February 2010 13:46, Shlomi Fish wrote: > > Regarding "PERL" - it's either "perl" or "Perl" but never "PERL": > > > > http://perl.org.il/misc.html#pl_vs_pl > > What does have got to do with the question? > It doesn't, but it was a mista

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Erez Schatz
On 2 February 2010 09:19, venu madhav wrote: >        I've a situation where I create a hash variable in PERL and > use it in Java script which is embedded in the CGI. The key for that > hash is taken from JavaScript. For ex: > > - CGI code > my %hash{3}=300; > --JScript code--- > var

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Erez Schatz
On 2 February 2010 13:46, Shlomi Fish wrote: > Regarding "PERL" - it's either "perl" or "Perl" but never "PERL": > > http://perl.org.il/misc.html#pl_vs_pl What does have got to do with the question? > > Please go to http://perl-begin.org/ and find a good resource to learn Perl. To > qoute Mark J

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Shlomi Fish
Hi Venu! On Tuesday 02 Feb 2010 09:19:27 venu madhav wrote: > Hi All, > I've a situation where I create a hash variable in PERL and > use it in Java script which is embedded in the CGI. The key for that > hash is taken from JavaScript. For ex: Regarding "PERL" - it's either "perl" or "Per

How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread venu madhav
Hi All, I've a situation where I create a hash variable in PERL and use it in Java script which is embedded in the CGI. The key for that hash is taken from JavaScript. For ex: - CGI code my %hash{3}=300; --JScript code--- var var1 = 3; var variable = $hash{var1}; --

Re: Cgi/perl

2007-04-21 Thread Mumia W.
On 04/20/2007 07:29 PM, John Maverick wrote: Folks, Got a question regarding perl code in cgi script. I am running below line of code in cgi script which doesn't work as expected. my $ticket = qx{echo $p4pass | p4 login -p $p4user}; Basically command has to return a ticket or error message. I

Cgi/perl

2007-04-20 Thread John Maverick
Folks, Got a question regarding perl code in cgi script. I am running below line of code in cgi script which doesn't work as expected. my $ticket = qx{echo $p4pass | p4 login -p $p4user}; Basically command has to return a ticket or error message. I keep getting $ticket as empty. However, if I

how to make http cgi-perl script work for https

2006-08-28 Thread krishna prasad
Hi, I an very new to CGI and want to know how to make the CGI(with perl) pages presently working on http work on https. I have the following webpage Logout.cgi. #!/opt/plat/bin/perl use strict; use Time::localtime; use CGI; use CGI::Carp 'fatalsToBrowser'; use lib "/opt/appl/web/cgi-bin"; use GS

Re: CGI-Perl fails to work on Solaris

2004-06-30 Thread Wiggins d Anconia
> Hi, >My perl script which uses CGI module fails to work > in Solaris giving Standard HTTP 500 Internal server > error.I checked the Apache log. It says "Premature > end of script headers:" > > But it works fine in HPUX and Windows. Is there any > thing That has to be take care of in Solar

CGI-Perl fails to work on Solaris

2004-06-29 Thread Pasumarthi Suresh
Hi, My perl script which uses CGI module fails to work in Solaris giving Standard HTTP 500 Internal server error.I checked the Apache log. It says "Premature end of script headers:" But it works fine in HPUX and Windows. Is there any thing That has to be take care of in Solaris. Thanks in

RE: populating a cgi/perl program with a text file

2004-03-23 Thread Charles K. Clarkson
m from a html (href) : command line that will open a selected file. I think it : would be something like... : (a href="http:/www.mysite/cgi-perl/editform.cgi -???- : myfile.txt) The ??? is what I'm looking for. If you are using the same program to edit that you used to create t

populating a cgi/perl program with a text file

2004-03-23 Thread srebecchi
that will open a selected file. I think it would be something like... (a href="http:/www.mysite/cgi-perl/editform.cgi -???- myfile.txt) The ??? is what I'm looking for. Here is a sample of a text file it creates: The data entry form program outputs the field names that label the data in

Re: Database Paging using CGI Perl

2003-12-12 Thread Wiggins d Anconia
> Dear Friends, > > I am using Informix database. I want to implement > database paging concept on Informix using CGI Perl. > > Please provide me any sample code. > > Thanks in Advance, > This was recently discussed on beginners-cgi, you may want to reference

Database Paging using CGI Perl

2003-12-12 Thread Mallik
Dear Friends, I am using Informix database. I want to implement database paging concept on Informix using CGI Perl. Please provide me any sample code. Thanks in Advance, With Regards, Mallikarjun. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[ WAY OT ]Re: developing and testing first CGI/Perl application

2002-05-03 Thread drieux
On Friday, May 3, 2002, at 06:54 , james wrote: [..] > i've been monitoring this list and couldn't help but notice the volume of > your posts. i have to ask: do you ever sleep? when I can. ( no smiley ) > > :) james may I recommend: http://www.wetware.com/drieux/screeds/LiNox.html actually y

RE: developing and testing first CGI/Perl application

2002-05-03 Thread Nikola Janceski
ay, May 03, 2002 10:02 AM > To: Perl > Subject: Re: developing and testing first CGI/Perl application > > > > From: "james" <[EMAIL PROTECTED]> > > Date: Fri, 3 May 2002 08:54:49 -0500 > > To: <[EMAIL PROTECTED]> > > Subject: Re: developi

Re: developing and testing first CGI/Perl application

2002-05-03 Thread Tor Hildrum
> From: "james" <[EMAIL PROTECTED]> > Date: Fri, 3 May 2002 08:54:49 -0500 > To: <[EMAIL PROTECTED]> > Subject: Re: developing and testing first CGI/Perl application > > drieux, > > i've been monitoring this list and couldn't help but

Re: developing and testing first CGI/Perl application

2002-05-03 Thread james
developing and testing first CGI/Perl application > > On Friday, May 3, 2002, at 06:22 , Maureen E Fischer wrote: > > > I am about to write my first CGI/Perl application. I have read Learning > > Perl and I now am reading the Castro Perl and CGI book and the O'Reilly

Re: developing and testing first CGI/Perl application

2002-05-03 Thread drieux
On Friday, May 3, 2002, at 06:22 , Maureen E Fischer wrote: > I am about to write my first CGI/Perl application. I have read Learning > Perl and I now am reading the Castro Perl and CGI book and the O'Reilly > CGI book. I was going to write and test my work using IIS on Window

developing and testing first CGI/Perl application

2002-05-03 Thread Maureen E Fischer
I am about to write my first CGI/Perl application. I have read Learning Perl and I now am reading the Castro Perl and CGI book and the O'Reilly CGI book. I was going to write and test my work using IIS on Windows because it seemed easy for me to get started that way, but I have access

Re: CGI-Perl list

2002-02-26 Thread Elaine -HFB- Ashton
Naika - EV1 [[EMAIL PROTECTED]] quoth: *>Can someone direct me to the cgi-perl list for beginners? I'm trying to find *>it but am unable. If anyone has the subscribe headers for it that will do as *>well, thanks. http://lists.cpan.org/showlist.cgi?name=beginners-cgi e. -- To

CGI-Perl list

2002-02-26 Thread Naika - EV1
Can someone direct me to the cgi-perl list for beginners? I'm trying to find it but am unable. If anyone has the subscribe headers for it that will do as well, thanks. - naika http://www.naikaonline.com http://www.triocollective.com

Re: Password ---- cgi-perl-html

2002-01-08 Thread Leon
- Original Message - From: "Peter Cornelius" <[EMAIL PROTECTED]> > The way that I have done this in the past is to set a cookie after the > initial authentication. On all pages that require authentication you check > for the cookie and validate that it hasn't been tampered with. Do you u

RE: Password ---- cgi-perl-html

2002-01-08 Thread Peter Cornelius
The way that I have done this in the past is to set a cookie after the initial authentication. On all pages that require authentication you check for the cookie and validate that it hasn't been tampered with. If this check fails you redirect the user to the login page. To prevent tampering you

Re: Password ---- cgi-perl-html

2002-01-07 Thread victor
actually, most likely you are looking not just password checking but also session management. The easiest way is to take advantage of mod_auth which come with apache by default (consult this part of the apache faq for more detail http://httpd.apache.org/docs/misc/FAQ.html#user-authentication) o

Re: Password ---- cgi-perl-html

2002-01-07 Thread Eric
if you're running Apache, look into .htaccess for password protecting certain parts of your site.. no reason to make something harder than it has to be. ~Eric On Monday, January 7, 2002, at 07:58 PM, Luinrandir Hernson wrote: > ect part of my website. > I have the password -- To unsubscri

Password ---- cgi-perl-html

2002-01-07 Thread Luinrandir Hernson
I am trying to password protect part of my website. I have the password page done. But how to I make the pages protected so you have to go through the password page? Do i do it by passing hidden inputs from page to page? How do I force people coming in around the password page to go through the

Re: CGI perl html urgent

2002-01-07 Thread Bud Rogers
Prahlad Vaidyanathan wrote: > Does emacs do syntax highlighting ? I've been using Vim for a very > long time now, but last time I checked Emacs didn't do it. Xemacs does. IMO not as good as Vim, but very good nonetheless. It's been a very long time since I used Emacs, but I'm pretty sure it d

Re: CGI perl html urgent

2002-01-07 Thread Prahlad Vaidyanathan
Hi, On Sun, 06 Jan 2002 Brett W. McCoy spewed into the ether: [-- snip --] > You shouldn't use WordPad for writing Perl code (or any kind of code), you > should get some kind of programmer's editor that can do syntax > highlighting and has some kind of smarts about the syntax of the language > yo

Re: CGI perl html urgent

2002-01-06 Thread Brett W. McCoy
On Sat, 5 Jan 2002, mb wrote: > >I have a question, real quick. Why use the < >section of html to print out instead of just print qq~ ~; for instance? > What > >are the advantages of using this other method? > > > I' m new on perl world but I found the < tedieus > than > print table( TR( td( "

Re: CGI perl html urgent

2002-01-06 Thread mb
>-Message d'origine- >De : [EMAIL PROTECTED] <[EMAIL PROTECTED]> >À : mb <[EMAIL PROTECTED]> >Cc : [EMAIL PROTECTED] <[EMAIL PROTECTED]> >Date : dimanche 6 janvier 2002 03:50 >Objet : Re: CGI perl html urgent > > >> >>Also, I ha

RE: CGI perl html urgent

2002-01-05 Thread Alan C.
Subject: RE: CGI perl html urgent Hi, Different? -- I think of it as a way when i need larger amounts of text or html tags or larger amounts of whatever. But perhaps all it is is part of Perl's characteristic of "there's more than one way to do it" (tmtowtdi) I thin

Re: CGI perl html urgent

2002-01-05 Thread mb
-Message d'origine- De : Robert Howard <[EMAIL PROTECTED]> À : [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date : samedi 5 janvier 2002 13:38 Objet : RE: CGI perl html urgent >I have a question, real quick. Why use the <section of html to print out instead of just pr

RE: CGI perl html urgent

2002-01-05 Thread Robert Howard
I have a question, real quick. Why use the <mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 3:43 PM To: mb Cc: [EMAIL PROTECTED] Subject: Re: CGI perl html urgent So many things were wrong: Here is a cleanup version: (See attached file: VoirStock.cgi) I inserted line 21 for

Re: CGI perl html urgent

2002-01-04 Thread William.Ampeh
So many things were wrong: Here is a cleanup version: (See attached file: VoirStock.cgi) I inserted line 21 for my purposes, so uncomment line 20 and comment out line 21 20 #$fichier = "../src/Stock.txt"; 21 $fichier = "Stock.txt"; Output: --

CGI perl html urgent

2002-01-04 Thread mb
  -Message d'origine-De : mb <[EMAIL PROTECTED]>À : [EMAIL PROTECTED] <[EMAIL PROTECTED]>Date : vendredi 4 janvier 2002 21:46 Hi,   When compiling the perl cgi code joined to this mail, I had "Internal Server Error" on my apache server. I did not find the pb. thanks for help.   -->>

Re: multiple image upload CGI/perl

2001-12-18 Thread birgit kellner
OK, I believe I identified the source of the problem, even though I don't yet understand it: somehow the filehandle for reading the input file is not set properly. As I understand it, the filehandle should be the local filename (hence "$file" in the code given below), but if I just use "$file",

multiple image upload CGI/perl

2001-12-13 Thread Birgit Kellner
I'm trying to code a routine for uploading up to four images via a CGI-form, using CGI.pm. Filenames including local paths are stored in @files_to_upload. At this point in the script I have the base names of each file in @files_to_uploaded associated with the full filename in %basename, and the

Re: Newbie needs help with cgi/perl/forms (Thank you)

2001-08-13 Thread Candyban
"Birgit Kellner" <[EMAIL PROTECTED]> wrote in message news:1137665400.997570078@[10.0.0.140]... > --On Samstag, 11. August 2001 14:09 +0200 Candyban Thank you verry much. It seem to work. Although my @filenames; foreach (@names) { #for each name in the query string if (param('$_') eq "on") { #no

Re: CGI/Perl Cookies

2001-07-29 Thread Marcelo Ramos
El Sun, 29 Jul 2001 11:57:22 EDT [EMAIL PROTECTED] escribió: >Hello there, > >Two questions, if anyone can help that would be great. > >I have this script that sets cookies.. 6 of them to be exact.. What script? Regards. -- __

CGI/Perl Cookies

2001-07-29 Thread Msftblows
Hello there, Two questions, if anyone can help that would be great. I have this script that sets cookies.. 6 of them to be exact.. But, it has a few problems: A. It isn't creating all of them.. I can change pre-existing cookies but some of the new ones won't be created... Is there a maximum nu

CGI/Perl Cookies

2001-07-29 Thread Msftblows
Hello there, Two questions, if anyone can help that would be graet. I have this script that sets cookies.. 6 of them to be exact.. But, it has a few problems: A. It isn't creating all of them.. I can change pre-existing cookies but some of the new ones won't be created... Is there a maximum nu

RE: CGI-PERL!!!!!!!!!!!HELP!!!!!!!!!!!!!!!

2001-07-16 Thread Sally
Have you checked your permissions? -Original Message- From: Rahul Garg [mailto:[EMAIL PROTECTED]] Sent: 16 July 2001 09:00 To: [EMAIL PROTECTED] Subject: CGI-PERL!!!HELP!!! Hello Everybody.. What i have done is placed a .cgi file in cgi-bin directory of

Re: CGI-PERL!!!!!!!!!!!HELP!!!!!!!!!!!!!!!

2001-07-16 Thread Jos I. Boumans
you're on linux, whether the script is executable (by httpd) Jos Boumans - Original Message - From: "Rahul Garg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 16, 2001 9:59 AM Subject: CGI-PERL!!!HELP!!! Hello Everybody

Re: CGI-PERL-HTML.......HELP!!!!!!!!!!!!!!!

2001-07-16 Thread Rajeev Rumale
ed Present. ___ - Original Message - From: "Rahul Garg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 14, 2001 2:37 PM Subject: CGI-PERL-HTML...HELP!!! Hello Everybody, Well, I am developing an a

CGI-PERL!!!!!!!!!!!HELP!!!!!!!!!!!!!!!

2001-07-16 Thread Rahul Garg
Hello Everybody.. What i have done is placed a .cgi file in cgi-bin directory of web server. In this file i am using on submission search_results is also placed on cgi-bin dir. of same server. But it is giving Internal server error.i have not done much in search_results.cgi so

Re: CGI-PERL-HTML.......HELP!!!!!!!!!!!!!!!

2001-07-15 Thread Teresa Raymond
,param2=value2>Lin k Then on script.cgi, use CGI.pm to parse data. >Hello Everybody, > > >Well, I am developing an appl. in CGi-PERL that wil run on webserver . >The app will call files on webserver and make changes in it. >The approach i am following is :

Re: CGI-PERL-HTML.......HELP!!!!!!!!!!!!!!!

2001-07-14 Thread C.J. Collier
g it from CPAN, unless you want the bleeding edge version. Good luck, C.J. On Sat, 14 Jul 2001, Rahul Garg wrote: > Hello Everybody, > > > Well, I am developing an appl. in CGi-PERL that wil run on webserver . > The app will call files on webserver and make changes in it. &g

Re: CGI-PERL-HTML.......HELP!!!!!!!!!!!!!!!

2001-07-14 Thread Pete Sergeant
>1. where( & how) to write code in perl script(HTML) for actions >to occur on clicking hyperlinks . In my very humble opinion, your best option here is to pass the script information using the query_string. So, for example: http://localhost/la.pl?sample_data 'sample_data' is then available from

CGI-PERL-HTML.......HELP!!!!!!!!!!!!!!!

2001-07-13 Thread Rahul Garg
Hello Everybody, Well, I am developing an appl. in CGi-PERL that wil run on webserver . The app will call files on webserver and make changes in it. The approach i am following is : 1). For the web interface i will develop perlscripts with html code(forms) in it. This i will do . 2

Re: Needs beginners cgi-perl mailing list

2001-07-11 Thread Teresa Raymond
Hi Rahul, Go to: http://lists.perl.org/showlist.cgi?name=beginners-cgi >Hello, >I want to know the references of mailing list for beginners CGI-PERL >programming. >Help!!! *** Teresa Raymond *** http://www.mariposanet.com *** [EMAIL PROTECTED]

RE: CGI-PERL

2001-07-11 Thread John Edwards
-Original Message- From: Rahul Garg [mailto:[EMAIL PROTECTED]] Sent: 11 July 2001 11:21 To: [EMAIL PROTECTED] Subject: CGI-PERL Hello, Well, well I have to create web pages whish on receiving inputs and submission will perform various actions on files on web server. could u suggest which

CGI-PERL

2001-07-11 Thread Rahul Garg
Hello, Well, well I have to create web pages whish on receiving inputs and submission will perform various actions on files on web server. could u suggest which of the two approaches i should follow: 1. create pages in HTML and then call perlscripts. 2. only thru perl scripts. to my knowledge 2)

Needs beginners cgi-perl mailing list

2001-07-11 Thread Rahul Garg
Hello, I want to know the references of mailing list for beginners CGI-PERL programming. Help!!!

RE: CGI-PERL

2001-07-11 Thread Mal Beaton
be an excellent module and easy to follow and understand -Original Message- From: Rahul Garg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 10 July 2001 22:45 To: [EMAIL PROTECTED] Subject: CGI-PERL Hello, Well ,I am a beginner to PERL friends. I think we can create HTML sort of pages thru

CGI-PERL

2001-07-10 Thread Rahul Garg
Hello, Well ,I am a beginner to PERL friends. I think we can create HTML sort of pages thru perl scripting.Thats what is called CGI-PERL programming and can carry out various operations on say click events. (But how ?can u give me some simple examples.) Tell me if I am correct/not correct. Can u

Oracle/CGI/Perl (was: RE: I am a real begginer to perl......)

2001-05-02 Thread Timothy Kimball
: I am also a beginner and wondering if there are any other recommended : books other than the camel book from O'Reilly. I have been asked to : display information from the Oracle Database on the web using Perl and : CGI. So far, I mostly know how to check for patterns. Gulp!! O'Reilly has al