Re: Determining connection type
From: Big and Blue (No_4_at_dsl.pipex.com)
Date: 12/08/04
- Next message: A. Sinan Unur: "Re: Generate Squential Numbers?"
- Previous message: A. Sinan Unur: "Re: Dynamic Search Tool"
- In reply to: Marshall Dudley: "Re: Determining connection type"
- Next in thread: Gunnar Hjalmarsson: "Re: Determining connection type"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 08 Dec 2004 00:44:17 +0000
Marshall Dudley wrote:
>>
> This is a shopping cart application and the image is thrown from the images
> directory. Normally it is thrown non securely so that we don't have the
> overhead of throwing it securily, but if we are on a secure page, it needs
> to be thrown securily,
It is customary to serve images, not throw them. And, as has been
mentioned, this is a CGI issue (in fact, it's an HTML one), not a Perl problem.
> that is the image tag needs to have https instead of
> http in it. I could go relative, which would work, but some stores actually
> throw images from another site on the net, so that won't always work.
Well, use relative when they don't.
> That is I need to use
>
> <img src=https://domain.com/images/image.jpg> instead of <img
> src=http://domain.com/images/image.jpg> There are other issues as well,
> such as if I need to close a secure form and reopen as an insecure form or
> not, but it all depends on determining if the connection is an ssl
> connection or not.
So read up on your Web server - how to configure it and use it. It is
that which is interacting with your program using CGI.
But the answer you are probably looking for it to check your
environment for SSL_* variables being set.
>>>However I cannot find any way in perl to tell if the connection is
>>>secure or non secure.
That's because it isn't a Perl issue. Perl may let you discover the
answer, but you really shoudl get to grips with your Web server and how to
run it first. In particular, if you are writing a shopping-cart
application (i.e., presumably some financial aspect to this) without such
an understanding could you please publish the Website address here so that
I may avoid using it?
--
-*- Just because I've written it here doesn't -*-
-*- mean that you should, or I do, believe it. -*-
- Next message: A. Sinan Unur: "Re: Generate Squential Numbers?"
- Previous message: A. Sinan Unur: "Re: Dynamic Search Tool"
- In reply to: Marshall Dudley: "Re: Determining connection type"
- Next in thread: Gunnar Hjalmarsson: "Re: Determining connection type"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|