Re: Retrieving cookie expiration date
No, the expiration date is not sent by the browsers back to the server. The browser only checks if the cookie is not expired, and if it is not, it sends it, otherwise it doesn't. Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: Sawsan Sarandah [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 7:44 AM Subject: Retrieving cookie expiration date Greetings, Is it possible using cgi.pm or other means to extract the expiration date time of a cookie on a remote computer? If yes, how? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Retrieving cookie expiration date
read 'perldoc cgi', go to the http cookies section. you can retrieve a cookie into a hash which will include the exp date. HTH Jim -Original Message- From: Sawsan Sarandah [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 12:44 AM To: [EMAIL PROTECTED] Subject: Retrieving cookie expiration date Greetings, Is it possible using cgi.pm or other means to extract the expiration date time of a cookie on a remote computer? If yes, how? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multipart form data
On Tue, 15 Jul 2003 at 17:30, Anshuman Kanwar opined: [snip] AK:So it sees the filename but not the data itself. Problem is that I want to AK:save the Jpg pictures in some other files and the AK:BOTZSERIAL=00:02:D3:00:01:01 type info in some other file, but I am not AK:seeing the binary (jpg) data at all. How do I extract the .jpg files from AK:this POST? you need to use upload() instead of param() to read the image. please read perldoc CGI for more information and examples. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Retrieving cookie expiration date
Could you tell us how to do that? I've seen that the cookie is returned by the browsers in the HTTP_COOKIE environment variable in the form: HTTP_COOKIE=cookie_name=cookie_value;next_cookie_name=next_cookie_value; but no expiration date is sent. I don't think the CGI module is able to find the expiration date of a cookie. But if the programmer wants, he can set this expiration date in the value of the cookie. Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: Kipp, James [EMAIL PROTECTED] To: 'Sawsan Sarandah' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 2:45 PM Subject: RE: Retrieving cookie expiration date read 'perldoc cgi', go to the http cookies section. you can retrieve a cookie into a hash which will include the exp date. HTH Jim -Original Message- From: Sawsan Sarandah [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 12:44 AM To: [EMAIL PROTECTED] Subject: Retrieving cookie expiration date Greetings, Is it possible using cgi.pm or other means to extract the expiration date time of a cookie on a remote computer? If yes, how? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Variable $q will not stay shared at
Hello, I'm working on my first Perl project. Most of my cgi programs work ok, but a look at the apache error log reveals this warning which is clear to me: Variable $xy will not stay shared at /data/www/cgi-perl/envir.pl line 19. [Wed Jul 16 11:44:57 2003] [error] Undefined subroutine Apache::ROOT::cgi_2dperl::environ_2epl::start_html called at /data/www/cgi- perl/envir.pl line 20. For instance: This code will trigger such warning. #!/usr/bin/perl -w use strict; use CGI; my $xy = new CGI; print $xy-header(); print $xy-start_html(); print $xy-p( Perl-CGI); print $xy-end_html; # I tried several alternatives, like invoking print() only once at header. But I can't feature out what that warning actually means. My apache is configure with mod_perl. Besides that, my project will consist of 1 main Perl script and several modules in a subdirectory which will be performing various functions. Now; what I intend to do is always send the main script a parameter through the URL, which will then indicate which of the modules should be called. Each of my modules will contains subroutines for various functions: My question is: How do I send a parameter to my script through a link on my web page? I tried something like this, but did not work. a href=cgi-perl/mainprogram.pl?action=cup_of_coffeeA cup of coffee /a What I'm trying to do here is to send the string cup_of_coffee to the main program. The main program will have something like this to store the parameter from the url: @forwarded_by_url = ??? # Am not sure here. Can someone tell me how to implement it? That will be great! Thanks Babs -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]