Click to See Complete Forum and Search --> : Launch external web page


jonsteng
04-12-2007, 08:05 AM
I have a cgi page with perl script where a user will enter search critera to retrieve a file from a unix file server.

The cgi page is hosted on the same unix server in apache.

I need to be able to either redirect or put a link, with parameters from their search criteria, to an external ASP.Net application (aspx web page hosted on a windows server under IIS).

I have been able to print a link using the following:

$dwgpdf = "<br><a href=http://webserver/app/>Click here</a><br>"

print $dwgpdf;

However clicking the link opens a page with an error that the page cannot be viewed. When I type the address directly into the address bar, it works fine.

Also tried printing redirect and location, but no fun there either.

Any suggestions greatly appreciated.

jonsteng
04-12-2007, 10:02 AM
I got the link to the new page to work... helps to type the url correctly - :eek: -

I am still having trouble with getting the parameters correct.

I need to pass two query parameters to the application (file and path). I have those in variables on the cgi page, but building the url with them is causing a problem.

I have something like this:

$dwgpdf = "<br><a href=http://webserver/app/default.aspx?file=$filenm&path=$pathnm\>Click here</a><br>"

Again, any suggestions greatly appreciated - thanks.