in reply to Re^5: %ENV is returning a blank
in thread %ENV is returning a blank

Below is the output from your script. Please tell me if I am looking at the wrong thing.

1019851644.86502 Fri Aug 19 07:46:53 2011

$VAR1 = bless( { '.parameters' => [], 'use_tempfile' => 1, '.etab' => 1, '.charset' => 'ISO-8859-1', '.fieldnames' => {}, '.elid' => 1, 'param' => {}, 'escape' => 1, '.header_printed' => 1 }, 'CGI' );

SCRIPT_NAME /cgi-bin/test.pl SERVER_NAME irvy.com.au HTTP_REFERER http://irvy.com.au/makeBooking.xml SERVER_ADMIN webmaster@irvy.com.au HTTP_ACCEPT_ENCODING gzip,deflate,sdch HTTP_CONNECTION keep-alive REQUEST_METHOD GET HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 SCRIPT_FILENAME /home/irvy1607/public_html/cgi-bin/test.pl SERVER_SOFTWARE Apache HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.3 QUERY_STRING REMOTE_PORT 46728 HTTP_USER_AGENT Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1 SERVER_PORT 80 SERVER_SIGNATURE HTTP_ACCEPT_LANGUAGE en-US,en;q=0.8 HTTP_COOKIE cpsession=irvy16076162218125107012768877432565436767357127847170640561398598858064; logintheme=cpanel; langedit=; lang=; cprelogin=no REMOTE_ADDR 115.70.36.80 SERVER_PROTOCOL HTTP/1.1 PATH /usr/local/bin:/usr/bin:/bin REQUEST_URI /cgi-bin/test.pl? GATEWAY_INTERFACE CGI/1.1 SERVER_ADDR 76.74.128.190 DOCUMENT_ROOT /home/irvy1607/public_html HTTP_HOST irvy.com.au UNIQUE_ID Tk4U7UxKgL4AAEejcWcAAAAb

Replies are listed 'Best First'.
Re^7: %ENV is returning a blank
by ikegami (Patriarch) on Aug 19, 2011 at 07:57 UTC

    That output is not from the right request. From the XHTML:

    <form id="frmBook" action="/cgi-bin/makeBooking.pl" method="POST">

    From the request you dumped:

    REQUEST_URI /cgi-bin/test.pl?

      Sorry, I have already changed the form action to /cgi-bin/test.pl and the method to get.

      I just did not want to post the whole xml file again.

        You didn't give names to your fields, so your browser couldn't send their values to the web server. Give them names.
Re^7: %ENV is returning a blank
by Anonymous Monk on Aug 19, 2011 at 08:16 UTC
      Thank you for your response. Would you be able to tell me exactly what you did to get the output? Did you fill and submit the form on my website? I am still getting nothing back in the query string.

        Thank you for your response. Would you be able to tell me exactly what you did to get the output? Did you fill and submit the form on my website? I am still getting nothing back in the query string.

        No, I did not visit your form because HideMyAss.com has a bug in their service, whereas they don't fix relative uri form actions, so I just hand-coded a query string (oh snap, i let the secret out)