Perl & CGI/Perl and asp

Advertisement


Question
Hello!

I need to call an asp link from a perl script, by passing parameters, and would like to simply use a print "Location: $url?$data";

This does not work, the $data is never received by the asp script. I use this way to send data to perl or php scripts and this works fine, but not here.

Is there a special way to do this?

Thank you,

Achille

Answer
Achille,

This should work, unless for some reason this feature was disabled by the server. As I'm unfamiliar beyond real basics with ASP I'm kind of guessing here.

But here's what I'd suggest - after printing your header, execute the following lines of code in the script and see if the $data stuff shows up anywhere.

for(sort keys %ENV)
{ print "<br /> ENV{$_} eq $ENV{$_}\n" }


--
Marty Landman, Face 2 Interface Inc.
Drupal Development Blog: http://drupal.face2interface.com/
Free Database Search App: http://face2interface.com/Products/FormATable.shtml

Perl & CGI

All Answers


Answers by Expert:


Ask Experts

Volunteer


Marty Landman

Expertise

Perl programming using CGI, databases, HTML templating, and website automation.

Experience

Web developer since 1998, owner of Face 2 Interface.

©2012 About.com, a part of The New York Times Company. All rights reserved.