Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

CGI help

 [1/7] from: rsaathoff:datajunction at: 27-Jul-2001 16:02


Hi all, I've been trying to put a CGI form I wrote in rebol up on a website and I can't seem to get it to work. I've uploaded rebol.exe to the FTP directory, and have changed the path in the rebol file accordingly. I also changed the "action=" attribute in the form tag to point to the location of the script. But when I have been testing the form, the browser looks like it is trying to pull the code to the rebol file up as if it would an HTML document, and printing a "Page cannot be displayed" error. What am I doing wrong? Thanks. Ryan

 [2/7] from: carlos::lorenz::net at: 27-Jul-2001 19:06


Hi Ryan, Same happens to me. May I see the header of your .r files? Carlos ----- Original Message ----- From: "Ryan" <[rsaathoff--datajunction--com]> To: <[rebol-list--rebol--com]> Sent: Friday, July 27, 2001 6:02 PM Subject: [REBOL] CGI help
> Hi all, > I've been trying to put a CGI form I wrote in rebol up on a website and I
can't seem to get it to work. I've uploaded rebol.exe to the FTP directory, and have changed the path in the rebol file accordingly. I also changed the action attribute in the form tag to point to the location of the script. But when I have been testing the form, the browser looks like it is trying to pull the code to the rebol file up as if it would an HTML document, and printing a "Page cannot be displayed" error. What am I doing wrong?

 [3/7] from: carl:cybercraft at: 28-Jul-2001 10:09


On 28-Jul-01, Ryan wrote:
> Hi all, > I've been trying to put a CGI form I wrote in rebol up on a website
<<quoted lines omitted: 5>>
> the rebol file up as if it would an HTML document, and printing a > "Page cannot be displayed" error. What am I doing wrong?
Have you set the protection bits correctly on the files on the website? They need to be right for both the REBOL exe and the scripts you want to run.
> Thanks. > Ryan
-- Carl Read [carl--cybercraft--co--nz]

 [4/7] from: ryanc:iesco-dms at: 27-Jul-2001 15:15


Whats the URL to your CGI? Ryan wrote:
> Hi all, > I've been trying to put a CGI form I wrote in rebol up on a website and I can't seem to get it to work. I've uploaded rebol.exe to the FTP directory, and have changed the path in the rebol file accordingly. I also changed the "action=" attribute in the form tag to point to the location of the script. But when I have been testing the form, the browser looks like it is trying to pull the code to the rebol file up as if it would an HTML document, and printing a "Page cannot be displayed" error. What am I doing wrong?
<<quoted lines omitted: 4>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Ryan Cole Programmer Analyst www.iesco-dms.com 707-468-5400

 [5/7] from: allenk:powerup:au at: 28-Jul-2001 10:02


Ryan, A small checklist.. Is it on Apache? Have you set the script file as executable permission with chmod 755 ? Is the "#!/usr/bin/rebol -cs" line the first line with no other white space before it? If it is IIS, you don't get away as easily as uploading the rebol.exe, you have to have a file association set for the server. Cheers, Allen K ----- Original Message ----- From: "Ryan Cole" <[ryanc--iesco-dms--com]> To: <[rebol-list--rebol--com]> Sent: Saturday, July 28, 2001 8:15 AM Subject: [REBOL] Re: CGI help
> Whats the URL to your CGI? > > Ryan wrote: > > > Hi all, > > I've been trying to put a CGI form I wrote in rebol up on a website and
I can't seem to get it to work. I've uploaded rebol.exe to the FTP directory, and have changed the path in the rebol file accordingly. I also changed the "action=" attribute in the form tag to point to the location of the script. But when I have been testing the form, the browser looks like it is trying to pull the code to the rebol file up as if it would an HTML document, and printing a "Page cannot be displayed" error. What am I doing wrong?

 [6/7] from: gchiu:compkarori at: 29-Jul-2001 11:40


On Sat, 28 Jul 2001 10:02:59 +1000 "Allen Kamp" <[allenk--powerup--com--au]> wrote:
> Have you set the script file as executable permission > with chmod 755 ?
711 is all you need. -- Graham Chiu

 [7/7] from: tim:johnsons-web at: 27-Jul-2001 15:03


Hi Ryan: This is being sent directly to you because for some problem that Sassenrath and company are yet unable to solve, none of my emails to the list have been posted in some time.... Having said that... I would be happy to help you if I can, but you need to post both relevant code and the form itself. My suggestion would be to post the portion of the referring document from <form> to the </form> tabs, as well as the rebol code that you have written. I suggest that you post directly to me and also to the list. With that strategy I might be able to help you, most certainly others on the list will. Regards -- Tim Johnson <[tim--johnsons-web--com]> http://www.johnsons-web.com

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted