Help with a cgi script

Discussion in 'Perl' started by \(a\), Aug 26, 2003.

  1. \(a\)

    \(a\) Guest

    Would someone be able to provide me with a few lines of code (cgi) that
    would accomplish the following:

    It would read the url in the address field in IE and simply print it to the
    screen.

    Thank you.
     
    \(a\), Aug 26, 2003
    #1
    1. Advertising

  2. \(a\)

    PapaBear Guest

    <code>

    print <<"EOT";
    Content-type: text/html

    <html>
    <body>
    The url is: $ENV{DOCUMENT_ROOT}$ENV{REQUEST_URI}$ENV{QUERY_STRING}
    </body>
    </html>
    EOT

    </code>

    hope this helps...

    --
    __________________________________
    Never mind the bear, beware of Papa!


    "(a)" <> schreef in bericht
    news:3gB2b.848947$...
    > Would someone be able to provide me with a few lines of code (cgi) that
    > would accomplish the following:
    >
    > It would read the url in the address field in IE and simply print it to

    the
    > screen.
    >
    > Thank you.
    >
    >
     
    PapaBear, Aug 26, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. praba kar

    Python-cgi or Perl-cgi script doubt

    praba kar, Jul 30, 2005, in forum: Python
    Replies:
    1
    Views:
    808
    Michael Sparks
    Jul 30, 2005
  2. Amir  Michail

    cgi relay for python cgi script

    Amir Michail, Oct 4, 2005, in forum: Python
    Replies:
    7
    Views:
    490
    Michael Ekstrand
    Oct 4, 2005
  3. Muzammil
    Replies:
    1
    Views:
    1,275
    red floyd
    Aug 28, 2008
  4. Gavri Savio Fernandez

    cgi = CGI.new causes the script to hang

    Gavri Savio Fernandez, Nov 30, 2003, in forum: Ruby
    Replies:
    2
    Views:
    278
    Ara.T.Howard
    Dec 1, 2003
  5. kath
    Replies:
    4
    Views:
    808
    J. Gleixner
    Apr 9, 2007
Loading...

Share This Page