The Server.Transfer method uses VFP's DO command to call another FWX file. What you need in this case is an HTTP redirect, via the Response.Redirect method:
Response.Redirect('/cgi-bin/myFile.cgi')
FoxWeb Support Team support@foxweb.com email |
Sent by Alan Harris-Reid on 03/11/2003 05:41:55 AM:
I am trying to call a .cgi file using Server.transfer(/cgi-bin/myFile.cgi) and I am getting the error message "File myFie.cgi not found". The file is definitely in the same cgi-bin directory as Foxweb.exe. If possible I don't want to hard-code the path to the file, so is there a 'generic' way of referring to the cgi-bin directory? Is there something wrong with my calling code?
If it makes any difference, I am running Foxweb on Apache.
TIA,
Alan