1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

HTTP_REFERER gets undefined

Discussion in 'Apache' started by boardrider, Aug 13, 2005.

  1. #1
    :confused:
    Hi All,

    I need to solve a problem in Perl/5.8.0 vis-a-vis Apache/2.0.40.

    I have a Perl CGI script that calls another Perl CGI script.
    In the first script HTTP_REFERER is defined, but once the second script is called, HTTP_REFERER gets undefined.

    Any idea why this is happening ?

    Thanks.
     
    boardrider, Aug 13, 2005 IP
  2. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #2
    CGI variables are passed through environment. When Apache calls your first script, it sets up the environment, but when the second script is called, it seems to use the default environment. I can't help you with Perl, but this should get you started. Look for ways to export environment variables.

    J.D.
     
    J.D., Aug 14, 2005 IP
  3. boardrider

    boardrider Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks J.D.
    BR.
     
    boardrider, Aug 14, 2005 IP