web-ftp-general Mailing List for Web-FTP
Status: Beta
Brought to you by:
aball
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
(32) |
Jul
(2) |
Aug
(12) |
Sep
|
Oct
(5) |
Nov
|
Dec
(20) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(6) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(9) |
Jul
(2) |
Aug
|
Sep
(5) |
Oct
(3) |
Nov
(3) |
Dec
|
2002 |
Jan
(13) |
Feb
(2) |
Mar
(6) |
Apr
(5) |
May
(3) |
Jun
(3) |
Jul
(17) |
Aug
|
Sep
(9) |
Oct
(3) |
Nov
|
Dec
|
2003 |
Jan
(2) |
Feb
|
Mar
(22) |
Apr
(1) |
May
(1) |
Jun
(6) |
Jul
|
Aug
(2) |
Sep
(2) |
Oct
(11) |
Nov
|
Dec
(13) |
2004 |
Jan
(11) |
Feb
(3) |
Mar
(11) |
Apr
(3) |
May
|
Jun
(2) |
Jul
(1) |
Aug
(14) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2006 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(15) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(2) |
Dec
|
2008 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: Jose T. <jet...@co...> - 2009-12-22 15:48:37
|
I loaded the web-ftp page but is not working for my FTP server. My FTP server accepts log-in by TLS connections only. I tried changing the code to use Net::FTPSSL but is not interchangeable with Net::FTP, it log-ins successfully but does not show the directories. The dir method is not available on FTPSSL so it requires to much changes. What can I do? |
From: Raymond C. <gi...@gm...> - 2008-02-16 02:58:44
|
opps! my previous reply did not come out correctly, re-posting using plain text. correction made: t/ftp instead of f/ftp -Raymond. On Sat, Feb 16, 2008 at 1:31 PM, Raymond Chen <gi...@gm...> wrote: > Thank you for your reply. > I have gone back to web-ftp version 2.2.1, but still get this connection > refused error as below: > > Remote user timed out at /usr/lib/cgi-bin/web-ftp.cgi line 603, <STDIN> line > 1. > > Could not connect to socket: Connection refused > > I am using the standard port for vsftpd (port 21), the config files are > pretty much default. For web-ftp.conf, I did not change anything. For > /etc/vsftpd.conf, I have only uncommented Local_enable=YES. I have attached > both file if you need to check for other settings that maybe required. > > Another thing I noticed is that when I install the libnet-1.22 module, "perl > Makefile.PL" and "make" executed without any error. when I do a "make test", > on the line t/ftp, it says "Failed to change directory.", I am not sure if > this have anything to do with it. Full output of "make test" as follows: > ------------------------------------------------------------------------ > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/config......ok > t/datasend....ok > t/ftp.........Failed to change directory. > > t/ftp.........ok > t/hostname....ok > t/netrc.......ok > 2/20 skipped: testing as root > t/nntp........skipped > all skipped: no reason given > t/require.....ok > t/smtp........skipped > all skipped: no reason given > All tests successful, 2 tests and 2 subtests skipped. > Files=8, Tests=102, 0 wallclock secs ( 0.44 cusr + 0.10 csys = 0.54 CPU) > ----------------------------------------------------------------------------------------------------------------------------- > More details on app version: > ---------------------------------------------- > apache version: 2.2.4 > vsftpd version: 2.0.5 > perl version: 5.8.8 > > Much appreciated for your help. > > -Raymond. > > > > On Sat, Feb 16, 2008 at 2:45 AM, Anthony R. J. Ball <an...@su...> wrote: > > > > > Is youf ftp server running on a standard port? What does your config file > look like? > > > > > > > > > > On Thu, Feb 14, 2008 at 01:50:30PM +1100, Raymond Chen wrote: > > > Hi all, > > > > > > I am trying to get web-ftp running on ubuntu 7.10 and I am getting this > > > error from the apache log: > > > > > > Remote user timed out at /usr/lib/cgi-bin/web-ftp.cgi line 622, <LANG> > line > > > 288. > > > Could not connect to socket: Connection refused. > > > > > > I am running Apache2 and vsftpd on Ubuntu 7.10. Web-ftp is version 2.3.0 > > > My ftp server is working as I can login from http://www.net2ftp.com/ > > > > > > any idea on what I should do? > > > > > > cheers, > > > Raymond. > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Web-ftp-general mailing list > > > Web...@li... > > > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > > > > > > -- > > www.suave.net - Anthony Ball - an...@su... > > OSB - http://rivendell.suave.net/Beer > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > Unwritten Laws can not be erased > > > > > > |
From: Anthony R. J. B. <an...@su...> - 2008-02-15 15:45:41
|
Is youf ftp server running on a standard port? What does your config file look like? On Thu, Feb 14, 2008 at 01:50:30PM +1100, Raymond Chen wrote: > Hi all, > > I am trying to get web-ftp running on ubuntu 7.10 and I am getting this > error from the apache log: > > Remote user timed out at /usr/lib/cgi-bin/web-ftp.cgi line 622, <LANG> line > 288. > Could not connect to socket: Connection refused. > > I am running Apache2 and vsftpd on Ubuntu 7.10. Web-ftp is version 2.3.0 > My ftp server is working as I can login from http://www.net2ftp.com/ > > any idea on what I should do? > > cheers, > Raymond. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Web-ftp-general mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-ftp-general -- www.suave.net - Anthony Ball - an...@su... OSB - http://rivendell.suave.net/Beer -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Unwritten Laws can not be erased |
From: Raymond C. <gi...@gm...> - 2008-02-14 02:50:32
|
Hi all, I am trying to get web-ftp running on ubuntu 7.10 and I am getting this error from the apache log: Remote user timed out at /usr/lib/cgi-bin/web-ftp.cgi line 622, <LANG> line 288. Could not connect to socket: Connection refused. I am running Apache2 and vsftpd on Ubuntu 7.10. Web-ftp is version 2.3.0 My ftp server is working as I can login from http://www.net2ftp.com/ any idea on what I should do? cheers, Raymond. |
From: Anthony R. J. B. <an...@su...> - 2007-11-07 15:38:42
|
It is all on the server... config files and log files... Config file should be where the cgi lives, logging goes the the httpd error log. On Wed, Nov 07, 2007 at 10:31:10AM -0300, Fabio Martins wrote: > Hello! > > The guy that admin our web-ftp was fired and didn't left any > documentation. I didn't find it in web-ftp website. Can someone tell me > what is the default web-ftp admin interface? A user is trying to upload > files, but is receivint the error in the attachment. > > Thankyou in advance. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Web-ftp-general mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-ftp-general -- www.suave.net - Anthony Ball - an...@su... OSB - http://rivendell.suave.net/Beer -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Everyone lives by selling something. - Robert Louis Stevenson |
From: Justin E. <jus...@on...> - 2007-10-05 14:32:52
|
Hey can someone provide me with a good guide on templating and possibly some examples? Thanks Justin Ehrlichman Computer Technician Online Stores Inc. 724-925-5600 ext 610 Jus...@on... www.onlinestores.com |
From: Anthony R. J. B. <an...@su...> - 2007-04-26 17:15:01
|
> What you're interested in is the > "http://localhost/web-ftp-2.2.0/web-ftpc.cgi/861961601511/" part. > That's the URL for your logged in session. Yeah... the number is handy since it allows you to work without a cookie. All possible but there are a whole bunch of better alternatives unless you are connecting to someone else's WebFTP which you have no control over. -- www.suave.net - Anthony Ball - an...@su... OSB - http://rivendell.suave.net/Beer -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Now then, was that funny or WHAT? |
From: Dan N. <dn...@al...> - 2007-04-26 16:48:09
|
[cc'ing the list again since this might be useful to have in the archives] In the last episode (Apr 26), Mic...@ol... said: > This is the first time that I have been asked to do anything with file > transfers. I think they want us to use WEBFTP due to it being very > secure. Is there any documentation out there that can help me with the > way you proposed? If web-ftp is being used on an https:// url to secure a standard unencrypted FTP server, then you might not have direct access to the FTP server at all, and will have to go the scripting route. If it's just an http:// address, then it's no more secure than the FTP server itself, and you might as well ask for direct FTP access :) To script web-ftp access, what you'll have to do is mimic a form post (for the login step), capture an URL from the page that is returned, then upload/download using URLs constructed from that. Here's how to do it with curl. This simulates a login (replace myuser, mypass, and the URL with appropriate values), and puts the returned page in a file called "outfile": curl -L -o outfile -d username=myuser -d password=mypass http://localhost/web-ftp-2.2.1/web-ftp.cgi In outfile, you will need to extract the base of one of the URLs. There are a bunch of them, and they will all look like this: <FRAME NORESIZE NAME=HEAD SCROLLING="NO" SRC="http://localhost/web-ftp-2.2.0/web-ftpc.cgi/861961601511/HEAD"></FRAME> What you're interested in is the "http://localhost/web-ftp-2.2.0/web-ftpc.cgi/861961601511/" part. That's the URL for your logged in session. To upload a file named "myfile", append "POST" to your base url: curl -F uploaded_file=@myfile http://localhost/web-ftp-2.2.0/web-ftpc.cgi/861961601511/POST To download a file named "myfile", append "DNLD?myfile" to your base url. Note that you need to specify the filename in two places, one for web-ftp to know what to download, and the other to specify the local filename to create: curl -o myfile http://localhost/web-ftp-2.2.0/web-ftpc.cgi/861961601511/DNLD?myfile -- Dan Nelson dn...@al... |
From: Dan N. <dn...@al...> - 2007-04-26 15:13:10
|
In the last episode (Apr 26), Mic...@ol... said: > I would like to know if there is anyway to automate the transfer of > files to WEBFTP? Are there any scripts that can be generated and run > to automate the process? Thanks. Wouldn't it be much easier to simply FTP to whatever server the web-ftp package connects to, and bypass web-ftp completely? You could easily enough script the login procedure and upload/download (I've done it with curl on other web-based file transfer sites more complicated than web-ftp), but it's a lot more work than simply using a curl or ncftpput one-liner to send to the FTP server itself. -- Dan Nelson dn...@al... |
From: Anthony R. J. B. <an...@su...> - 2007-04-26 14:50:21
|
There aren't any existing that I know of... My guess is for something like that you'd be better off with a custom solution, since I assume you are using it for a common repetitive task. On Thu, Apr 26, 2007 at 10:39:45AM -0400, Mic...@ol... wrote: > I would like to know if there is anyway to automate the transfer of files > to WEBFTP? Are there any scripts that can be generated and run to automate > the process? Thanks. > > Regards, > Michael. > > > Michael Pietromonaco > Senior Manager Software Development and Integration > Olympus America Inc. > Medical Information Technologies > 3500 Corporate Parkway > P.O. Box 610 > Center Valley, PA 18034-0610 > mic...@ol... > Voice: 484-896-5378 > Fax: 484-896-7107 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Web-ftp-general mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-ftp-general -- www.suave.net - Anthony Ball - an...@su... OSB - http://rivendell.suave.net/Beer -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= If love is blind, how does love at first sight work? |
From: FTP <ft...@at...> - 2006-07-13 08:22:58
|
Hi, can I run web-ftp in a 1.3.29 chrooted Apache? I get a 500 error when I launch web-ftp.cgi Thanks |
From: Anthony R. J. B. <an...@su...> - 2006-07-12 19:57:45
|
It probably compiled ok before, those were just warnings. Glad it works now, though. On Wed, Jul 12, 2006 at 08:51:09PM +0200, FTP wrote: > I did some minor 'corrections' (strlcpy and strlcat) and it did compile. Now works fine. Please find it attached. > > Do you think that you could add this version in your distribution? This applies to OpenBSD 3.9 > > Thanks > > George > > On Wed, Jul 12, 2006 at 08:31:41PM +0200, FTP wrote: > > didn't compile. Here are the results: > > > > -------------- > > cc web-ftpc.c -o web-ftpc.cgi > > > > /tmp//ccB26931.o(.text+0xde): In function `main': > > : warning: strcpy() is almost always misused, please use strlcpy() > > /tmp//ccB26931.o(.text+0x423): In function `main': > > : warning: strcat() is almost always misused, please use strlcat() > > > > # gcc web-ftpc.c -o web-ftpc.cgi > > > > /tmp//ccf14518.o(.text+0xde): In function `main': > > : warning: strcpy() is almost always misused, please use strlcpy() > > /tmp//ccf14518.o(.text+0x423): In function `main': > > : warning: strcat() is almost always misused, please use strlcat() > > -------------- > > > > Thanks > > > > George > > > > On Wed, Jul 12, 2006 at 11:35:21AM -0400, Anthony R. J. Ball wrote: > > > > > > Try this one? > > > > > > On Tue, Jul 11, 2006 at 08:31:43PM +0200, FTP wrote: > > > > also gcc gives the following: > > > > > > > > # gcc web-ftpc.c -o web-ftpc.cgi > > > > web-ftpc.c:111:12: missing terminating " character > > > > web-ftpc.c: In function `main': > > > > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > > > > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > > > > web-ftpc.c:113: error: for each function it appears in.) > > > > web-ftpc.c:113: error: syntax error before '<' token > > > > web-ftpc.c:116: error: stray '\' in program > > > > web-ftpc.c:116:15: missing terminating " character > > > > web-ftpc.c:120: error: stray '\' in program > > > > web-ftpc.c:120:15: missing terminating " character > > > > web-ftpc.c:122: error: stray '\' in program > > > > web-ftpc.c:122:108: missing terminating " character > > > > web-ftpc.c:123:15: missing terminating " character > > > > > > > > The "gcc" I'm using is: > > > > > > > > # which gcc > > > > /usr/bin/gcc > > > > # gcc -v > > > > Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/specs > > > > Configured with: > > > > Thread model: single > > > > gcc version 3.3.5 (propolice) > > > > > > > > > > > > Thanks > > > > > > > > George > > > > > > > > On Tue, Jul 11, 2006 at 02:24:01PM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > Do you have gcc? If that doesn't work I think I know what to do. > > > > > > > > > > On Tue, Jul 11, 2006 at 08:21:28PM +0200, FTP wrote: > > > > > > indeed you are right. In the INSTALL doc you refer to the "web-ftp.c" but I think that its the "web-ftpc.c" instead - correct? > > > > > > Now I tried to compile it by running: > > > > > > > > > > > > cc web-ftpc.c -o web-ftpc.cgi > > > > > > > > > > > > and get the following: > > > > > > > > > > > > ------------ > > > > > > web-ftpc.c:111:12: missing terminating " character > > > > > > web-ftpc.c: In function `main': > > > > > > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > > > > > > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > > > > > > web-ftpc.c:113: error: for each function it appears in.) > > > > > > web-ftpc.c:113: error: syntax error before '<' token > > > > > > web-ftpc.c:116: error: stray '\' in program > > > > > > web-ftpc.c:116:15: missing terminating " character > > > > > > web-ftpc.c:120: error: stray '\' in program > > > > > > web-ftpc.c:120:15: missing terminating " character > > > > > > web-ftpc.c:122: error: stray '\' in program > > > > > > web-ftpc.c:122:108: missing terminating " character > > > > > > web-ftpc.c:123:15: missing terminating " character > > > > > > ------------ > > > > > > > > > > > > Thanks > > > > > > > > > > > > George > > > > > > > > > > > > On Tue, Jul 11, 2006 at 01:52:07PM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > > > > > Hehe.. THAT one is covered in the docs. The web-ftpc.cgi is a > > > > > > > compiled C program, compiled under Linux, you are using BSD you said... > > > > > > > > > > > > > > INSTALL should help... > > > > > > > > > > > > > > Or just change to > > > > > > > MainCGI=web-ftp.cgi > > > > > > > > > > > > > > That just uses pure Perl, no C. slower and more processor intensive, > > > > > > > but should work. > > > > > > > > > > > > > > On Tue, Jul 11, 2006 at 07:06:19PM +0200, FTP wrote: > > > > > > > > ops! Sorry. You were right :-( I forgot to start the FTP server :-( > > > > > > > > > > > > > > > > But now I get another error message. When the user credentials are correct, the browser displays the following: > > > > > > > > > > > > > > > > ------------------ > > > > > > > > Internal Server Error > > > > > > > > The server encountered an internal error or misconfiguration and was unable to complete your request. > > > > > > > > > > > > > > > > Please contact the server administrator, yo...@yo...dress and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > > > > > > > > > > > > > > > More information about this error may be available in the server error log. > > > > > > > > ------------------- > > > > > > > > > > > > > > > > and the error_log: > > > > > > > > > > > > > > > > Premature end of script headers: /var/www/cgi-bin/web-ftpc.cgi > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > George > > > > > > > > > > > > > > > > On Tue, Jul 11, 2006 at 11:52:44AM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > > > > > > > > > So there is definately an FTP server running on the default port of > > > > > > > > > the host you specified? > > > > > > > > > > > > > > > > > > On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > > > > > > > > > > Hi there, > > > > > > > > > > > > > > > > > > > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > > > > > > > > > > > > > > > > > > > Now, when I run: > > > > > > > > > > > > > > > > > > > > https://<my server>/cgi-bin/web-ftp.cgi > > > > > > > > > > > > > > > > > > > > and log-in with an existing UNIX user, I get the following in my browser: > > > > > > > > > > > > > > > > > > > > -------------------- > > > > > > > > > > There has been an error > > > > > > > > > > > > > > > > > > > > Server said: Net::FTP: connect: Connection refused > > > > > > > > > > > > > > > > > > > > Click here to go to the log in screen. > > > > > > > > > > -------------------- > > > > > > > > > > > > > > > > > > > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > > > > > > > > > > > > > > > > > > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > > > > > > > > > > > > > > > > > > > Any help is more than welcome in order to troubleshoot the above. > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > George > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Web-ftp-general mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > /* Copyright 2002 by Anthony Ball an...@we... > * May be used and redistiributed under the > * terms and agreements of the Gnu Public License > * This software comes with absolutely no warranty > */ > #include <sys/types.h> > #include <sys/socket.h> > #include <sys/un.h> > #include <unistd.h> > #include <stdio.h> > #include <stdlib.h> > #include <sys/types.h> > #include <sys/stat.h> > #include <fcntl.h> > /*#include <sys/timeb.h>*/ > > void err(const char *msg) { > perror(msg); > printf("Content-Type: text/html\n\n<HTML><HEAD><TITLE><A HREF=\"http://www.web-ftp.org\">Web-FTP</A> Error</TITLE></HEAD><BODY><H3>Web-FTP: There has been an error:<P><BLOCKQUOTE>%s</BLOCKQUOTE></BODY></HTML>",msg); > } > > int main(int argc, char **argv, char **env) { > int sockfd; > int len; > struct sockaddr_un address; > int result; > int i = 0; > FILE * conf; > int bytes; > char buf[10240]; > char sock[1024]; > char basecgi[1024]; > /* > struct timeb t; > struct timeb t2; > */ > int a,b; > > /*ftime(&t);*/ > sockfd = socket(AF_UNIX, SOCK_STREAM, 0); > /* printf("Content-Type: text/plain\n\n");*/ > address.sun_family = AF_UNIX; > if(!(conf = fopen("webftp/web-ftp.conf","r"))) { > if(!(conf = fopen("web-ftp.conf","r"))) { > err("Cound not find web-ftp.conf"); > exit(1); > } > } > strlcpy(basecgi,"web-ftp.cgi"); > sock[0] = '\0'; > while(fgets(buf,1024,conf)) { > int i = 9; > int j,k; > if(!strncasecmp(buf,"SocketDir",9)) { > i=9; > while(++i < 1023 && (buf[i] == ' ' || buf[i] == '=') > && buf[i] != '\n' && buf[i] != '\r' && buf[i] != '\0'){} > k = j = i; > while(buf[k] != '\n' && ++k < 1023 && buf[k] != '\n') { > if(buf[k] != ' ') > j = k+1; > } > if(j > i) { > strncpy(sock,buf+i,j-i); > sock[j-i] = '\0'; > } > } > if(!strncasecmp(buf,"BaseCGI",7)) { > i=6; > while(++i < 1023 && (buf[i] == ' ' || buf[i] == '=') > && buf[i] != '\n' && buf[i] != '\r' && buf[i] != '\0'){} > k = j = i; > while(buf[k] != '\n' && ++k < 1023 && buf[k] != '\n') { > if(buf[k] != ' ') > j = k+1; > } > if(j > i) { > strncpy(basecgi,buf+i,j-i); > basecgi[j-i] = '\0'; > } > } > } > fclose(conf); > > if(sock[0] == '\0') > strncpy(sock,"/tmp/WebFTP",1000); > strlcat(sock,"/"); > if(!getenv("PATH_INFO")) { > fprintf(stderr, "PATH_INFO not found in environment. May not be running as a cgi\n"); > exit(1); > } > strncat(sock,(char *)getenv("PATH_INFO"),6); > > strncpy(address.sun_path, sock, sizeof(address.sun_path)); > len = sizeof(address); > > result = connect(sockfd, (struct sockaddr *)&address, len); > > if(result == -1) { > char *i; > if(getenv("SCRIPT_NAME")) { > strncpy(buf,(char *)getenv("SCRIPT_NAME"),1000); > } else { > fprintf(stderr, "SCRIPT_NAME not found in environment... may not be running as a cgi"); > exit(1); > } > if((i = rindex(buf,'/')) > 0) > i[1] = '\0'; > strncat(buf,basecgi,1024-strlen(buf)); > perror("Could not connect to socket"); > printf("Content-type: text/html\n\n<HTML><HEAD>\n<SCRIPT LANGUAGE=JAVASCRIPT>\nfunction goToLogin() {\n setTimeout(\"open('%s','_top')\",5000);\n}\n</SCRIPT>\n</HEAD>\n<BODY ONLOAD=\"goToLogin()\">\n<H2>%s</H2>\nSorry, but your session has either timed out, or has aborted due to error, returning you to the <A TARGET=\"_top\" HREF=\"%s\">Login page</A>\n</BODY></HTML>",buf,buf,buf); > exit(1); > } > > while(env[i]) { > write(sockfd,env[i],strlen(env[i])); > write(sockfd,"\n",1); > i++; > } > write(sockfd,"__END_ENV__\n",12); > while(bytes = read(fileno(stdin),buf,1024)) { > write(sockfd,buf,bytes); > } > > write(sockfd,"\n\n",2); > > while((bytes = read(sockfd, &buf, 1024)) > 0) { > buf[bytes] = '\0'; > fwrite(buf,1,bytes,stdout); /* printf was just plain stupid: \0s */ > /* printf("%s", buf);*/ > } > close(sockfd); > /* > ftime(&t2); > a = t2.time - t.time; > b = t2.millitm - t.millitm ; > if(b < 0) { > a--; > b+=999; > } > fprintf(stderr,"C prog took: %d.%03d\n",a,b); > */ > } > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Web-ftp-general mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-ftp-general -- www.suave.net - Anthony Ball - an...@su... OSB - http://rivendell.suave.net/Beer -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= You can't be a figment of my imagination--I'd have done a better job! |
From: Dan N. <dn...@al...> - 2006-07-12 19:25:23
|
In the last episode (Jul 12), FTP said: > didn't compile. Here are the results: > > -------------- > cc web-ftpc.c -o web-ftpc.cgi > > /tmp//ccB26931.o(.text+0xde): In function `main': > : warning: strcpy() is almost always misused, please use strlcpy() > /tmp//ccB26931.o(.text+0x423): In function `main': > : warning: strcat() is almost always misused, please use strlcat() Note that these are only warnings. I bet an executable was generated. -- Dan Nelson dn...@al... |
From: FTP <ft...@at...> - 2006-07-12 18:54:33
|
forgot to include the compiled version for OpenBSD 3.9. Please find it attached. Thanks George On Wed, Jul 12, 2006 at 08:51:09PM +0200, FTP wrote: > I did some minor 'corrections' (strlcpy and strlcat) and it did compile. Now works fine. Please find it attached. > > Do you think that you could add this version in your distribution? This applies to OpenBSD 3.9 > > Thanks > > George > > On Wed, Jul 12, 2006 at 08:31:41PM +0200, FTP wrote: > > didn't compile. Here are the results: > > > > -------------- > > cc web-ftpc.c -o web-ftpc.cgi > > > > /tmp//ccB26931.o(.text+0xde): In function `main': > > : warning: strcpy() is almost always misused, please use strlcpy() > > /tmp//ccB26931.o(.text+0x423): In function `main': > > : warning: strcat() is almost always misused, please use strlcat() > > > > # gcc web-ftpc.c -o web-ftpc.cgi > > > > /tmp//ccf14518.o(.text+0xde): In function `main': > > : warning: strcpy() is almost always misused, please use strlcpy() > > /tmp//ccf14518.o(.text+0x423): In function `main': > > : warning: strcat() is almost always misused, please use strlcat() > > -------------- > > > > Thanks > > > > George > > > > On Wed, Jul 12, 2006 at 11:35:21AM -0400, Anthony R. J. Ball wrote: > > > > > > Try this one? > > > > > > On Tue, Jul 11, 2006 at 08:31:43PM +0200, FTP wrote: > > > > also gcc gives the following: > > > > > > > > # gcc web-ftpc.c -o web-ftpc.cgi > > > > web-ftpc.c:111:12: missing terminating " character > > > > web-ftpc.c: In function `main': > > > > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > > > > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > > > > web-ftpc.c:113: error: for each function it appears in.) > > > > web-ftpc.c:113: error: syntax error before '<' token > > > > web-ftpc.c:116: error: stray '\' in program > > > > web-ftpc.c:116:15: missing terminating " character > > > > web-ftpc.c:120: error: stray '\' in program > > > > web-ftpc.c:120:15: missing terminating " character > > > > web-ftpc.c:122: error: stray '\' in program > > > > web-ftpc.c:122:108: missing terminating " character > > > > web-ftpc.c:123:15: missing terminating " character > > > > > > > > The "gcc" I'm using is: > > > > > > > > # which gcc > > > > /usr/bin/gcc > > > > # gcc -v > > > > Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/specs > > > > Configured with: > > > > Thread model: single > > > > gcc version 3.3.5 (propolice) > > > > > > > > > > > > Thanks > > > > > > > > George > > > > > > > > On Tue, Jul 11, 2006 at 02:24:01PM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > Do you have gcc? If that doesn't work I think I know what to do. > > > > > > > > > > On Tue, Jul 11, 2006 at 08:21:28PM +0200, FTP wrote: > > > > > > indeed you are right. In the INSTALL doc you refer to the "web-ftp.c" but I think that its the "web-ftpc.c" instead - correct? > > > > > > Now I tried to compile it by running: > > > > > > > > > > > > cc web-ftpc.c -o web-ftpc.cgi > > > > > > > > > > > > and get the following: > > > > > > > > > > > > ------------ > > > > > > web-ftpc.c:111:12: missing terminating " character > > > > > > web-ftpc.c: In function `main': > > > > > > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > > > > > > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > > > > > > web-ftpc.c:113: error: for each function it appears in.) > > > > > > web-ftpc.c:113: error: syntax error before '<' token > > > > > > web-ftpc.c:116: error: stray '\' in program > > > > > > web-ftpc.c:116:15: missing terminating " character > > > > > > web-ftpc.c:120: error: stray '\' in program > > > > > > web-ftpc.c:120:15: missing terminating " character > > > > > > web-ftpc.c:122: error: stray '\' in program > > > > > > web-ftpc.c:122:108: missing terminating " character > > > > > > web-ftpc.c:123:15: missing terminating " character > > > > > > ------------ > > > > > > > > > > > > Thanks > > > > > > > > > > > > George > > > > > > > > > > > > On Tue, Jul 11, 2006 at 01:52:07PM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > > > > > Hehe.. THAT one is covered in the docs. The web-ftpc.cgi is a > > > > > > > compiled C program, compiled under Linux, you are using BSD you said... > > > > > > > > > > > > > > INSTALL should help... > > > > > > > > > > > > > > Or just change to > > > > > > > MainCGI=web-ftp.cgi > > > > > > > > > > > > > > That just uses pure Perl, no C. slower and more processor intensive, > > > > > > > but should work. > > > > > > > > > > > > > > On Tue, Jul 11, 2006 at 07:06:19PM +0200, FTP wrote: > > > > > > > > ops! Sorry. You were right :-( I forgot to start the FTP server :-( > > > > > > > > > > > > > > > > But now I get another error message. When the user credentials are correct, the browser displays the following: > > > > > > > > > > > > > > > > ------------------ > > > > > > > > Internal Server Error > > > > > > > > The server encountered an internal error or misconfiguration and was unable to complete your request. > > > > > > > > > > > > > > > > Please contact the server administrator, yo...@yo...dress and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > > > > > > > > > > > > > > > More information about this error may be available in the server error log. > > > > > > > > ------------------- > > > > > > > > > > > > > > > > and the error_log: > > > > > > > > > > > > > > > > Premature end of script headers: /var/www/cgi-bin/web-ftpc.cgi > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > George > > > > > > > > > > > > > > > > On Tue, Jul 11, 2006 at 11:52:44AM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > > > > > > > > > So there is definately an FTP server running on the default port of > > > > > > > > > the host you specified? > > > > > > > > > > > > > > > > > > On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > > > > > > > > > > Hi there, > > > > > > > > > > > > > > > > > > > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > > > > > > > > > > > > > > > > > > > Now, when I run: > > > > > > > > > > > > > > > > > > > > https://<my server>/cgi-bin/web-ftp.cgi > > > > > > > > > > > > > > > > > > > > and log-in with an existing UNIX user, I get the following in my browser: > > > > > > > > > > > > > > > > > > > > -------------------- > > > > > > > > > > There has been an error > > > > > > > > > > > > > > > > > > > > Server said: Net::FTP: connect: Connection refused > > > > > > > > > > > > > > > > > > > > Click here to go to the log in screen. > > > > > > > > > > -------------------- > > > > > > > > > > > > > > > > > > > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > > > > > > > > > > > > > > > > > > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > > > > > > > > > > > > > > > > > > > Any help is more than welcome in order to troubleshoot the above. > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > George > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Web-ftp-general mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > /* Copyright 2002 by Anthony Ball an...@we... > * May be used and redistiributed under the > * terms and agreements of the Gnu Public License > * This software comes with absolutely no warranty > */ > #include <sys/types.h> > #include <sys/socket.h> > #include <sys/un.h> > #include <unistd.h> > #include <stdio.h> > #include <stdlib.h> > #include <sys/types.h> > #include <sys/stat.h> > #include <fcntl.h> > /*#include <sys/timeb.h>*/ > > void err(const char *msg) { > perror(msg); > printf("Content-Type: text/html\n\n<HTML><HEAD><TITLE><A HREF=\"http://www.web-ftp.org\">Web-FTP</A> Error</TITLE></HEAD><BODY><H3>Web-FTP: There has been an error:<P><BLOCKQUOTE>%s</BLOCKQUOTE></BODY></HTML>",msg); > } > > int main(int argc, char **argv, char **env) { > int sockfd; > int len; > struct sockaddr_un address; > int result; > int i = 0; > FILE * conf; > int bytes; > char buf[10240]; > char sock[1024]; > char basecgi[1024]; > /* > struct timeb t; > struct timeb t2; > */ > int a,b; > > /*ftime(&t);*/ > sockfd = socket(AF_UNIX, SOCK_STREAM, 0); > /* printf("Content-Type: text/plain\n\n");*/ > address.sun_family = AF_UNIX; > if(!(conf = fopen("webftp/web-ftp.conf","r"))) { > if(!(conf = fopen("web-ftp.conf","r"))) { > err("Cound not find web-ftp.conf"); > exit(1); > } > } > strlcpy(basecgi,"web-ftp.cgi"); > sock[0] = '\0'; > while(fgets(buf,1024,conf)) { > int i = 9; > int j,k; > if(!strncasecmp(buf,"SocketDir",9)) { > i=9; > while(++i < 1023 && (buf[i] == ' ' || buf[i] == '=') > && buf[i] != '\n' && buf[i] != '\r' && buf[i] != '\0'){} > k = j = i; > while(buf[k] != '\n' && ++k < 1023 && buf[k] != '\n') { > if(buf[k] != ' ') > j = k+1; > } > if(j > i) { > strncpy(sock,buf+i,j-i); > sock[j-i] = '\0'; > } > } > if(!strncasecmp(buf,"BaseCGI",7)) { > i=6; > while(++i < 1023 && (buf[i] == ' ' || buf[i] == '=') > && buf[i] != '\n' && buf[i] != '\r' && buf[i] != '\0'){} > k = j = i; > while(buf[k] != '\n' && ++k < 1023 && buf[k] != '\n') { > if(buf[k] != ' ') > j = k+1; > } > if(j > i) { > strncpy(basecgi,buf+i,j-i); > basecgi[j-i] = '\0'; > } > } > } > fclose(conf); > > if(sock[0] == '\0') > strncpy(sock,"/tmp/WebFTP",1000); > strlcat(sock,"/"); > if(!getenv("PATH_INFO")) { > fprintf(stderr, "PATH_INFO not found in environment. May not be running as a cgi\n"); > exit(1); > } > strncat(sock,(char *)getenv("PATH_INFO"),6); > > strncpy(address.sun_path, sock, sizeof(address.sun_path)); > len = sizeof(address); > > result = connect(sockfd, (struct sockaddr *)&address, len); > > if(result == -1) { > char *i; > if(getenv("SCRIPT_NAME")) { > strncpy(buf,(char *)getenv("SCRIPT_NAME"),1000); > } else { > fprintf(stderr, "SCRIPT_NAME not found in environment... may not be running as a cgi"); > exit(1); > } > if((i = rindex(buf,'/')) > 0) > i[1] = '\0'; > strncat(buf,basecgi,1024-strlen(buf)); > perror("Could not connect to socket"); > printf("Content-type: text/html\n\n<HTML><HEAD>\n<SCRIPT LANGUAGE=JAVASCRIPT>\nfunction goToLogin() {\n setTimeout(\"open('%s','_top')\",5000);\n}\n</SCRIPT>\n</HEAD>\n<BODY ONLOAD=\"goToLogin()\">\n<H2>%s</H2>\nSorry, but your session has either timed out, or has aborted due to error, returning you to the <A TARGET=\"_top\" HREF=\"%s\">Login page</A>\n</BODY></HTML>",buf,buf,buf); > exit(1); > } > > while(env[i]) { > write(sockfd,env[i],strlen(env[i])); > write(sockfd,"\n",1); > i++; > } > write(sockfd,"__END_ENV__\n",12); > while(bytes = read(fileno(stdin),buf,1024)) { > write(sockfd,buf,bytes); > } > > write(sockfd,"\n\n",2); > > while((bytes = read(sockfd, &buf, 1024)) > 0) { > buf[bytes] = '\0'; > fwrite(buf,1,bytes,stdout); /* printf was just plain stupid: \0s */ > /* printf("%s", buf);*/ > } > close(sockfd); > /* > ftime(&t2); > a = t2.time - t.time; > b = t2.millitm - t.millitm ; > if(b < 0) { > a--; > b+=999; > } > fprintf(stderr,"C prog took: %d.%03d\n",a,b); > */ > } > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Web-ftp-general mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-ftp-general |
From: FTP <ft...@at...> - 2006-07-12 18:51:14
|
I did some minor 'corrections' (strlcpy and strlcat) and it did compile. Now works fine. Please find it attached. Do you think that you could add this version in your distribution? This applies to OpenBSD 3.9 Thanks George On Wed, Jul 12, 2006 at 08:31:41PM +0200, FTP wrote: > didn't compile. Here are the results: > > -------------- > cc web-ftpc.c -o web-ftpc.cgi > > /tmp//ccB26931.o(.text+0xde): In function `main': > : warning: strcpy() is almost always misused, please use strlcpy() > /tmp//ccB26931.o(.text+0x423): In function `main': > : warning: strcat() is almost always misused, please use strlcat() > > # gcc web-ftpc.c -o web-ftpc.cgi > > /tmp//ccf14518.o(.text+0xde): In function `main': > : warning: strcpy() is almost always misused, please use strlcpy() > /tmp//ccf14518.o(.text+0x423): In function `main': > : warning: strcat() is almost always misused, please use strlcat() > -------------- > > Thanks > > George > > On Wed, Jul 12, 2006 at 11:35:21AM -0400, Anthony R. J. Ball wrote: > > > > Try this one? > > > > On Tue, Jul 11, 2006 at 08:31:43PM +0200, FTP wrote: > > > also gcc gives the following: > > > > > > # gcc web-ftpc.c -o web-ftpc.cgi > > > web-ftpc.c:111:12: missing terminating " character > > > web-ftpc.c: In function `main': > > > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > > > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > > > web-ftpc.c:113: error: for each function it appears in.) > > > web-ftpc.c:113: error: syntax error before '<' token > > > web-ftpc.c:116: error: stray '\' in program > > > web-ftpc.c:116:15: missing terminating " character > > > web-ftpc.c:120: error: stray '\' in program > > > web-ftpc.c:120:15: missing terminating " character > > > web-ftpc.c:122: error: stray '\' in program > > > web-ftpc.c:122:108: missing terminating " character > > > web-ftpc.c:123:15: missing terminating " character > > > > > > The "gcc" I'm using is: > > > > > > # which gcc > > > /usr/bin/gcc > > > # gcc -v > > > Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/specs > > > Configured with: > > > Thread model: single > > > gcc version 3.3.5 (propolice) > > > > > > > > > Thanks > > > > > > George > > > > > > On Tue, Jul 11, 2006 at 02:24:01PM -0400, Anthony R. J. Ball wrote: > > > > > > > > Do you have gcc? If that doesn't work I think I know what to do. > > > > > > > > On Tue, Jul 11, 2006 at 08:21:28PM +0200, FTP wrote: > > > > > indeed you are right. In the INSTALL doc you refer to the "web-ftp.c" but I think that its the "web-ftpc.c" instead - correct? > > > > > Now I tried to compile it by running: > > > > > > > > > > cc web-ftpc.c -o web-ftpc.cgi > > > > > > > > > > and get the following: > > > > > > > > > > ------------ > > > > > web-ftpc.c:111:12: missing terminating " character > > > > > web-ftpc.c: In function `main': > > > > > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > > > > > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > > > > > web-ftpc.c:113: error: for each function it appears in.) > > > > > web-ftpc.c:113: error: syntax error before '<' token > > > > > web-ftpc.c:116: error: stray '\' in program > > > > > web-ftpc.c:116:15: missing terminating " character > > > > > web-ftpc.c:120: error: stray '\' in program > > > > > web-ftpc.c:120:15: missing terminating " character > > > > > web-ftpc.c:122: error: stray '\' in program > > > > > web-ftpc.c:122:108: missing terminating " character > > > > > web-ftpc.c:123:15: missing terminating " character > > > > > ------------ > > > > > > > > > > Thanks > > > > > > > > > > George > > > > > > > > > > On Tue, Jul 11, 2006 at 01:52:07PM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > > > Hehe.. THAT one is covered in the docs. The web-ftpc.cgi is a > > > > > > compiled C program, compiled under Linux, you are using BSD you said... > > > > > > > > > > > > INSTALL should help... > > > > > > > > > > > > Or just change to > > > > > > MainCGI=web-ftp.cgi > > > > > > > > > > > > That just uses pure Perl, no C. slower and more processor intensive, > > > > > > but should work. > > > > > > > > > > > > On Tue, Jul 11, 2006 at 07:06:19PM +0200, FTP wrote: > > > > > > > ops! Sorry. You were right :-( I forgot to start the FTP server :-( > > > > > > > > > > > > > > But now I get another error message. When the user credentials are correct, the browser displays the following: > > > > > > > > > > > > > > ------------------ > > > > > > > Internal Server Error > > > > > > > The server encountered an internal error or misconfiguration and was unable to complete your request. > > > > > > > > > > > > > > Please contact the server administrator, yo...@yo...dress and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > > > > > > > > > > > > > More information about this error may be available in the server error log. > > > > > > > ------------------- > > > > > > > > > > > > > > and the error_log: > > > > > > > > > > > > > > Premature end of script headers: /var/www/cgi-bin/web-ftpc.cgi > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > George > > > > > > > > > > > > > > On Tue, Jul 11, 2006 at 11:52:44AM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > > > > > > > So there is definately an FTP server running on the default port of > > > > > > > > the host you specified? > > > > > > > > > > > > > > > > On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > > > > > > > > > Hi there, > > > > > > > > > > > > > > > > > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > > > > > > > > > > > > > > > > > Now, when I run: > > > > > > > > > > > > > > > > > > https://<my server>/cgi-bin/web-ftp.cgi > > > > > > > > > > > > > > > > > > and log-in with an existing UNIX user, I get the following in my browser: > > > > > > > > > > > > > > > > > > -------------------- > > > > > > > > > There has been an error > > > > > > > > > > > > > > > > > > Server said: Net::FTP: connect: Connection refused > > > > > > > > > > > > > > > > > > Click here to go to the log in screen. > > > > > > > > > -------------------- > > > > > > > > > > > > > > > > > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > > > > > > > > > > > > > > > > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > > > > > > > > > > > > > > > > > Any help is more than welcome in order to troubleshoot the above. > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > George > > > > > > > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Web-ftp-general mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-ftp-general |
From: FTP <ft...@at...> - 2006-07-12 18:31:46
|
didn't compile. Here are the results: -------------- cc web-ftpc.c -o web-ftpc.cgi /tmp//ccB26931.o(.text+0xde): In function `main': : warning: strcpy() is almost always misused, please use strlcpy() /tmp//ccB26931.o(.text+0x423): In function `main': : warning: strcat() is almost always misused, please use strlcat() # gcc web-ftpc.c -o web-ftpc.cgi /tmp//ccf14518.o(.text+0xde): In function `main': : warning: strcpy() is almost always misused, please use strlcpy() /tmp//ccf14518.o(.text+0x423): In function `main': : warning: strcat() is almost always misused, please use strlcat() -------------- Thanks George On Wed, Jul 12, 2006 at 11:35:21AM -0400, Anthony R. J. Ball wrote: > > Try this one? > > On Tue, Jul 11, 2006 at 08:31:43PM +0200, FTP wrote: > > also gcc gives the following: > > > > # gcc web-ftpc.c -o web-ftpc.cgi > > web-ftpc.c:111:12: missing terminating " character > > web-ftpc.c: In function `main': > > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > > web-ftpc.c:113: error: for each function it appears in.) > > web-ftpc.c:113: error: syntax error before '<' token > > web-ftpc.c:116: error: stray '\' in program > > web-ftpc.c:116:15: missing terminating " character > > web-ftpc.c:120: error: stray '\' in program > > web-ftpc.c:120:15: missing terminating " character > > web-ftpc.c:122: error: stray '\' in program > > web-ftpc.c:122:108: missing terminating " character > > web-ftpc.c:123:15: missing terminating " character > > > > The "gcc" I'm using is: > > > > # which gcc > > /usr/bin/gcc > > # gcc -v > > Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/specs > > Configured with: > > Thread model: single > > gcc version 3.3.5 (propolice) > > > > > > Thanks > > > > George > > > > On Tue, Jul 11, 2006 at 02:24:01PM -0400, Anthony R. J. Ball wrote: > > > > > > Do you have gcc? If that doesn't work I think I know what to do. > > > > > > On Tue, Jul 11, 2006 at 08:21:28PM +0200, FTP wrote: > > > > indeed you are right. In the INSTALL doc you refer to the "web-ftp.c" but I think that its the "web-ftpc.c" instead - correct? > > > > Now I tried to compile it by running: > > > > > > > > cc web-ftpc.c -o web-ftpc.cgi > > > > > > > > and get the following: > > > > > > > > ------------ > > > > web-ftpc.c:111:12: missing terminating " character > > > > web-ftpc.c: In function `main': > > > > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > > > > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > > > > web-ftpc.c:113: error: for each function it appears in.) > > > > web-ftpc.c:113: error: syntax error before '<' token > > > > web-ftpc.c:116: error: stray '\' in program > > > > web-ftpc.c:116:15: missing terminating " character > > > > web-ftpc.c:120: error: stray '\' in program > > > > web-ftpc.c:120:15: missing terminating " character > > > > web-ftpc.c:122: error: stray '\' in program > > > > web-ftpc.c:122:108: missing terminating " character > > > > web-ftpc.c:123:15: missing terminating " character > > > > ------------ > > > > > > > > Thanks > > > > > > > > George > > > > > > > > On Tue, Jul 11, 2006 at 01:52:07PM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > Hehe.. THAT one is covered in the docs. The web-ftpc.cgi is a > > > > > compiled C program, compiled under Linux, you are using BSD you said... > > > > > > > > > > INSTALL should help... > > > > > > > > > > Or just change to > > > > > MainCGI=web-ftp.cgi > > > > > > > > > > That just uses pure Perl, no C. slower and more processor intensive, > > > > > but should work. > > > > > > > > > > On Tue, Jul 11, 2006 at 07:06:19PM +0200, FTP wrote: > > > > > > ops! Sorry. You were right :-( I forgot to start the FTP server :-( > > > > > > > > > > > > But now I get another error message. When the user credentials are correct, the browser displays the following: > > > > > > > > > > > > ------------------ > > > > > > Internal Server Error > > > > > > The server encountered an internal error or misconfiguration and was unable to complete your request. > > > > > > > > > > > > Please contact the server administrator, yo...@yo...dress and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > > > > > > > > > > > More information about this error may be available in the server error log. > > > > > > ------------------- > > > > > > > > > > > > and the error_log: > > > > > > > > > > > > Premature end of script headers: /var/www/cgi-bin/web-ftpc.cgi > > > > > > > > > > > > Thanks > > > > > > > > > > > > George > > > > > > > > > > > > On Tue, Jul 11, 2006 at 11:52:44AM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > > > > > So there is definately an FTP server running on the default port of > > > > > > > the host you specified? > > > > > > > > > > > > > > On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > > > > > > > > Hi there, > > > > > > > > > > > > > > > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > > > > > > > > > > > > > > > Now, when I run: > > > > > > > > > > > > > > > > https://<my server>/cgi-bin/web-ftp.cgi > > > > > > > > > > > > > > > > and log-in with an existing UNIX user, I get the following in my browser: > > > > > > > > > > > > > > > > -------------------- > > > > > > > > There has been an error > > > > > > > > > > > > > > > > Server said: Net::FTP: connect: Connection refused > > > > > > > > > > > > > > > > Click here to go to the log in screen. > > > > > > > > -------------------- > > > > > > > > > > > > > > > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > > > > > > > > > > > > > > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > > > > > > > > > > > > > > > Any help is more than welcome in order to troubleshoot the above. > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > George > > > > > > > > |
From: Anthony R. J. B. <an...@su...> - 2006-07-12 15:35:32
|
Try this one? On Tue, Jul 11, 2006 at 08:31:43PM +0200, FTP wrote: > also gcc gives the following: > > # gcc web-ftpc.c -o web-ftpc.cgi > web-ftpc.c:111:12: missing terminating " character > web-ftpc.c: In function `main': > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > web-ftpc.c:113: error: for each function it appears in.) > web-ftpc.c:113: error: syntax error before '<' token > web-ftpc.c:116: error: stray '\' in program > web-ftpc.c:116:15: missing terminating " character > web-ftpc.c:120: error: stray '\' in program > web-ftpc.c:120:15: missing terminating " character > web-ftpc.c:122: error: stray '\' in program > web-ftpc.c:122:108: missing terminating " character > web-ftpc.c:123:15: missing terminating " character > > The "gcc" I'm using is: > > # which gcc > /usr/bin/gcc > # gcc -v > Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/specs > Configured with: > Thread model: single > gcc version 3.3.5 (propolice) > > > Thanks > > George > > On Tue, Jul 11, 2006 at 02:24:01PM -0400, Anthony R. J. Ball wrote: > > > > Do you have gcc? If that doesn't work I think I know what to do. > > > > On Tue, Jul 11, 2006 at 08:21:28PM +0200, FTP wrote: > > > indeed you are right. In the INSTALL doc you refer to the "web-ftp.c" but I think that its the "web-ftpc.c" instead - correct? > > > Now I tried to compile it by running: > > > > > > cc web-ftpc.c -o web-ftpc.cgi > > > > > > and get the following: > > > > > > ------------ > > > web-ftpc.c:111:12: missing terminating " character > > > web-ftpc.c: In function `main': > > > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > > > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > > > web-ftpc.c:113: error: for each function it appears in.) > > > web-ftpc.c:113: error: syntax error before '<' token > > > web-ftpc.c:116: error: stray '\' in program > > > web-ftpc.c:116:15: missing terminating " character > > > web-ftpc.c:120: error: stray '\' in program > > > web-ftpc.c:120:15: missing terminating " character > > > web-ftpc.c:122: error: stray '\' in program > > > web-ftpc.c:122:108: missing terminating " character > > > web-ftpc.c:123:15: missing terminating " character > > > ------------ > > > > > > Thanks > > > > > > George > > > > > > On Tue, Jul 11, 2006 at 01:52:07PM -0400, Anthony R. J. Ball wrote: > > > > > > > > Hehe.. THAT one is covered in the docs. The web-ftpc.cgi is a > > > > compiled C program, compiled under Linux, you are using BSD you said... > > > > > > > > INSTALL should help... > > > > > > > > Or just change to > > > > MainCGI=web-ftp.cgi > > > > > > > > That just uses pure Perl, no C. slower and more processor intensive, > > > > but should work. > > > > > > > > On Tue, Jul 11, 2006 at 07:06:19PM +0200, FTP wrote: > > > > > ops! Sorry. You were right :-( I forgot to start the FTP server :-( > > > > > > > > > > But now I get another error message. When the user credentials are correct, the browser displays the following: > > > > > > > > > > ------------------ > > > > > Internal Server Error > > > > > The server encountered an internal error or misconfiguration and was unable to complete your request. > > > > > > > > > > Please contact the server administrator, yo...@yo...dress and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > > > > > > > > > More information about this error may be available in the server error log. > > > > > ------------------- > > > > > > > > > > and the error_log: > > > > > > > > > > Premature end of script headers: /var/www/cgi-bin/web-ftpc.cgi > > > > > > > > > > Thanks > > > > > > > > > > George > > > > > > > > > > On Tue, Jul 11, 2006 at 11:52:44AM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > > > So there is definately an FTP server running on the default port of > > > > > > the host you specified? > > > > > > > > > > > > On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > > > > > > > Hi there, > > > > > > > > > > > > > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > > > > > > > > > > > > > Now, when I run: > > > > > > > > > > > > > > https://<my server>/cgi-bin/web-ftp.cgi > > > > > > > > > > > > > > and log-in with an existing UNIX user, I get the following in my browser: > > > > > > > > > > > > > > -------------------- > > > > > > > There has been an error > > > > > > > > > > > > > > Server said: Net::FTP: connect: Connection refused > > > > > > > > > > > > > > Click here to go to the log in screen. > > > > > > > -------------------- > > > > > > > > > > > > > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > > > > > > > > > > > > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > > > > > > > > > > > > > Any help is more than welcome in order to troubleshoot the above. > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > George > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > > Using Tomcat but need to do more? Need to support web services, security? > > > > > > > Get stuff done quickly with pre-integrated technology to make your job easier > > > > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > > > _______________________________________________ > > > > > > > Web-ftp-general mailing list > > > > > > > Web...@li... > > > > > > > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > > > > > > > > > > > > > > > > > > > -- > > > > > > www.suave.net - Anthony Ball - an...@su... > > > > > > OSB - http://rivendell.suave.net/Beer > > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > > > > > And Thom was left crying to the Butter Cow > > > > > > > > > > > > > > > > > > > -- > > > > www.suave.net - Anthony Ball - an...@su... > > > > OSB - http://rivendell.suave.net/Beer > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > > > Can you be on the edge of time and still dance at the center? - Merry > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, security? > > > Get stuff done quickly with pre-integrated technology to make your job easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > Web-ftp-general mailing list > > > Web...@li... > > > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > > > > > > > -- > > www.suave.net - Anthony Ball - an...@su... > > OSB - http://rivendell.suave.net/Beer > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > I can fall down quicker than you could possibly hit me. > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Web-ftp-general mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > -- www.suave.net - Anthony Ball - an...@su... OSB - http://rivendell.suave.net/Beer -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Can you be on the edge of time and still dance at the center? - Merry |
From: FTP <ft...@at...> - 2006-07-11 18:31:46
|
also gcc gives the following: # gcc web-ftpc.c -o web-ftpc.cgi web-ftpc.c:111:12: missing terminating " character web-ftpc.c: In function `main': web-ftpc.c:113: error: `HTML' undeclared (first use in this function) web-ftpc.c:113: error: (Each undeclared identifier is reported only once web-ftpc.c:113: error: for each function it appears in.) web-ftpc.c:113: error: syntax error before '<' token web-ftpc.c:116: error: stray '\' in program web-ftpc.c:116:15: missing terminating " character web-ftpc.c:120: error: stray '\' in program web-ftpc.c:120:15: missing terminating " character web-ftpc.c:122: error: stray '\' in program web-ftpc.c:122:108: missing terminating " character web-ftpc.c:123:15: missing terminating " character The "gcc" I'm using is: # which gcc /usr/bin/gcc # gcc -v Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/specs Configured with: Thread model: single gcc version 3.3.5 (propolice) Thanks George On Tue, Jul 11, 2006 at 02:24:01PM -0400, Anthony R. J. Ball wrote: > > Do you have gcc? If that doesn't work I think I know what to do. > > On Tue, Jul 11, 2006 at 08:21:28PM +0200, FTP wrote: > > indeed you are right. In the INSTALL doc you refer to the "web-ftp.c" but I think that its the "web-ftpc.c" instead - correct? > > Now I tried to compile it by running: > > > > cc web-ftpc.c -o web-ftpc.cgi > > > > and get the following: > > > > ------------ > > web-ftpc.c:111:12: missing terminating " character > > web-ftpc.c: In function `main': > > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > > web-ftpc.c:113: error: for each function it appears in.) > > web-ftpc.c:113: error: syntax error before '<' token > > web-ftpc.c:116: error: stray '\' in program > > web-ftpc.c:116:15: missing terminating " character > > web-ftpc.c:120: error: stray '\' in program > > web-ftpc.c:120:15: missing terminating " character > > web-ftpc.c:122: error: stray '\' in program > > web-ftpc.c:122:108: missing terminating " character > > web-ftpc.c:123:15: missing terminating " character > > ------------ > > > > Thanks > > > > George > > > > On Tue, Jul 11, 2006 at 01:52:07PM -0400, Anthony R. J. Ball wrote: > > > > > > Hehe.. THAT one is covered in the docs. The web-ftpc.cgi is a > > > compiled C program, compiled under Linux, you are using BSD you said... > > > > > > INSTALL should help... > > > > > > Or just change to > > > MainCGI=web-ftp.cgi > > > > > > That just uses pure Perl, no C. slower and more processor intensive, > > > but should work. > > > > > > On Tue, Jul 11, 2006 at 07:06:19PM +0200, FTP wrote: > > > > ops! Sorry. You were right :-( I forgot to start the FTP server :-( > > > > > > > > But now I get another error message. When the user credentials are correct, the browser displays the following: > > > > > > > > ------------------ > > > > Internal Server Error > > > > The server encountered an internal error or misconfiguration and was unable to complete your request. > > > > > > > > Please contact the server administrator, yo...@yo...dress and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > > > > > > > More information about this error may be available in the server error log. > > > > ------------------- > > > > > > > > and the error_log: > > > > > > > > Premature end of script headers: /var/www/cgi-bin/web-ftpc.cgi > > > > > > > > Thanks > > > > > > > > George > > > > > > > > On Tue, Jul 11, 2006 at 11:52:44AM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > So there is definately an FTP server running on the default port of > > > > > the host you specified? > > > > > > > > > > On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > > > > > > Hi there, > > > > > > > > > > > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > > > > > > > > > > > Now, when I run: > > > > > > > > > > > > https://<my server>/cgi-bin/web-ftp.cgi > > > > > > > > > > > > and log-in with an existing UNIX user, I get the following in my browser: > > > > > > > > > > > > -------------------- > > > > > > There has been an error > > > > > > > > > > > > Server said: Net::FTP: connect: Connection refused > > > > > > > > > > > > Click here to go to the log in screen. > > > > > > -------------------- > > > > > > > > > > > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > > > > > > > > > > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > > > > > > > > > > > Any help is more than welcome in order to troubleshoot the above. > > > > > > > > > > > > Thanks > > > > > > > > > > > > George > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > Using Tomcat but need to do more? Need to support web services, security? > > > > > > Get stuff done quickly with pre-integrated technology to make your job easier > > > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > > _______________________________________________ > > > > > > Web-ftp-general mailing list > > > > > > Web...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > > > > > > > > > > > > > > > > -- > > > > > www.suave.net - Anthony Ball - an...@su... > > > > > OSB - http://rivendell.suave.net/Beer > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > > > > And Thom was left crying to the Butter Cow > > > > > > > > > > > > > > > -- > > > www.suave.net - Anthony Ball - an...@su... > > > OSB - http://rivendell.suave.net/Beer > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > > Can you be on the edge of time and still dance at the center? - Merry > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Web-ftp-general mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > > > > -- > www.suave.net - Anthony Ball - an...@su... > OSB - http://rivendell.suave.net/Beer > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > I can fall down quicker than you could possibly hit me. > |
From: Anthony R. J. B. <an...@su...> - 2006-07-11 18:23:42
|
Do you have gcc? If that doesn't work I think I know what to do. On Tue, Jul 11, 2006 at 08:21:28PM +0200, FTP wrote: > indeed you are right. In the INSTALL doc you refer to the "web-ftp.c" but I think that its the "web-ftpc.c" instead - correct? > Now I tried to compile it by running: > > cc web-ftpc.c -o web-ftpc.cgi > > and get the following: > > ------------ > web-ftpc.c:111:12: missing terminating " character > web-ftpc.c: In function `main': > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > web-ftpc.c:113: error: for each function it appears in.) > web-ftpc.c:113: error: syntax error before '<' token > web-ftpc.c:116: error: stray '\' in program > web-ftpc.c:116:15: missing terminating " character > web-ftpc.c:120: error: stray '\' in program > web-ftpc.c:120:15: missing terminating " character > web-ftpc.c:122: error: stray '\' in program > web-ftpc.c:122:108: missing terminating " character > web-ftpc.c:123:15: missing terminating " character > ------------ > > Thanks > > George > > On Tue, Jul 11, 2006 at 01:52:07PM -0400, Anthony R. J. Ball wrote: > > > > Hehe.. THAT one is covered in the docs. The web-ftpc.cgi is a > > compiled C program, compiled under Linux, you are using BSD you said... > > > > INSTALL should help... > > > > Or just change to > > MainCGI=web-ftp.cgi > > > > That just uses pure Perl, no C. slower and more processor intensive, > > but should work. > > > > On Tue, Jul 11, 2006 at 07:06:19PM +0200, FTP wrote: > > > ops! Sorry. You were right :-( I forgot to start the FTP server :-( > > > > > > But now I get another error message. When the user credentials are correct, the browser displays the following: > > > > > > ------------------ > > > Internal Server Error > > > The server encountered an internal error or misconfiguration and was unable to complete your request. > > > > > > Please contact the server administrator, yo...@yo...dress and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > > > > > More information about this error may be available in the server error log. > > > ------------------- > > > > > > and the error_log: > > > > > > Premature end of script headers: /var/www/cgi-bin/web-ftpc.cgi > > > > > > Thanks > > > > > > George > > > > > > On Tue, Jul 11, 2006 at 11:52:44AM -0400, Anthony R. J. Ball wrote: > > > > > > > > So there is definately an FTP server running on the default port of > > > > the host you specified? > > > > > > > > On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > > > > > Hi there, > > > > > > > > > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > > > > > > > > > Now, when I run: > > > > > > > > > > https://<my server>/cgi-bin/web-ftp.cgi > > > > > > > > > > and log-in with an existing UNIX user, I get the following in my browser: > > > > > > > > > > -------------------- > > > > > There has been an error > > > > > > > > > > Server said: Net::FTP: connect: Connection refused > > > > > > > > > > Click here to go to the log in screen. > > > > > -------------------- > > > > > > > > > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > > > > > > > > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > > > > > > > > > Any help is more than welcome in order to troubleshoot the above. > > > > > > > > > > Thanks > > > > > > > > > > George > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > Using Tomcat but need to do more? Need to support web services, security? > > > > > Get stuff done quickly with pre-integrated technology to make your job easier > > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > _______________________________________________ > > > > > Web-ftp-general mailing list > > > > > Web...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > > > > > > > > > > > > > -- > > > > www.suave.net - Anthony Ball - an...@su... > > > > OSB - http://rivendell.suave.net/Beer > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > > > And Thom was left crying to the Butter Cow > > > > > > > > > > > -- > > www.suave.net - Anthony Ball - an...@su... > > OSB - http://rivendell.suave.net/Beer > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > Can you be on the edge of time and still dance at the center? - Merry > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Web-ftp-general mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > -- www.suave.net - Anthony Ball - an...@su... OSB - http://rivendell.suave.net/Beer -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I can fall down quicker than you could possibly hit me. |
From: FTP <ft...@at...> - 2006-07-11 18:21:34
|
indeed you are right. In the INSTALL doc you refer to the "web-ftp.c" but I think that its the "web-ftpc.c" instead - correct? Now I tried to compile it by running: cc web-ftpc.c -o web-ftpc.cgi and get the following: ------------ web-ftpc.c:111:12: missing terminating " character web-ftpc.c: In function `main': web-ftpc.c:113: error: `HTML' undeclared (first use in this function) web-ftpc.c:113: error: (Each undeclared identifier is reported only once web-ftpc.c:113: error: for each function it appears in.) web-ftpc.c:113: error: syntax error before '<' token web-ftpc.c:116: error: stray '\' in program web-ftpc.c:116:15: missing terminating " character web-ftpc.c:120: error: stray '\' in program web-ftpc.c:120:15: missing terminating " character web-ftpc.c:122: error: stray '\' in program web-ftpc.c:122:108: missing terminating " character web-ftpc.c:123:15: missing terminating " character ------------ Thanks George On Tue, Jul 11, 2006 at 01:52:07PM -0400, Anthony R. J. Ball wrote: > > Hehe.. THAT one is covered in the docs. The web-ftpc.cgi is a > compiled C program, compiled under Linux, you are using BSD you said... > > INSTALL should help... > > Or just change to > MainCGI=web-ftp.cgi > > That just uses pure Perl, no C. slower and more processor intensive, > but should work. > > On Tue, Jul 11, 2006 at 07:06:19PM +0200, FTP wrote: > > ops! Sorry. You were right :-( I forgot to start the FTP server :-( > > > > But now I get another error message. When the user credentials are correct, the browser displays the following: > > > > ------------------ > > Internal Server Error > > The server encountered an internal error or misconfiguration and was unable to complete your request. > > > > Please contact the server administrator, yo...@yo...dress and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > > > More information about this error may be available in the server error log. > > ------------------- > > > > and the error_log: > > > > Premature end of script headers: /var/www/cgi-bin/web-ftpc.cgi > > > > Thanks > > > > George > > > > On Tue, Jul 11, 2006 at 11:52:44AM -0400, Anthony R. J. Ball wrote: > > > > > > So there is definately an FTP server running on the default port of > > > the host you specified? > > > > > > On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > > > > Hi there, > > > > > > > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > > > > > > > Now, when I run: > > > > > > > > https://<my server>/cgi-bin/web-ftp.cgi > > > > > > > > and log-in with an existing UNIX user, I get the following in my browser: > > > > > > > > -------------------- > > > > There has been an error > > > > > > > > Server said: Net::FTP: connect: Connection refused > > > > > > > > Click here to go to the log in screen. > > > > -------------------- > > > > > > > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > > > > > > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > > > > > > > Any help is more than welcome in order to troubleshoot the above. > > > > > > > > Thanks > > > > > > > > George > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > Using Tomcat but need to do more? Need to support web services, security? > > > > Get stuff done quickly with pre-integrated technology to make your job easier > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > _______________________________________________ > > > > Web-ftp-general mailing list > > > > Web...@li... > > > > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > > > > > > > > > > -- > > > www.suave.net - Anthony Ball - an...@su... > > > OSB - http://rivendell.suave.net/Beer > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > > And Thom was left crying to the Butter Cow > > > > > > > -- > www.suave.net - Anthony Ball - an...@su... > OSB - http://rivendell.suave.net/Beer > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Can you be on the edge of time and still dance at the center? - Merry > |
From: Anthony R. J. B. <an...@su...> - 2006-07-11 17:51:57
|
Hehe.. THAT one is covered in the docs. The web-ftpc.cgi is a compiled C program, compiled under Linux, you are using BSD you said... INSTALL should help... Or just change to MainCGI=web-ftp.cgi That just uses pure Perl, no C. slower and more processor intensive, but should work. On Tue, Jul 11, 2006 at 07:06:19PM +0200, FTP wrote: > ops! Sorry. You were right :-( I forgot to start the FTP server :-( > > But now I get another error message. When the user credentials are correct, the browser displays the following: > > ------------------ > Internal Server Error > The server encountered an internal error or misconfiguration and was unable to complete your request. > > Please contact the server administrator, yo...@yo...dress and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > More information about this error may be available in the server error log. > ------------------- > > and the error_log: > > Premature end of script headers: /var/www/cgi-bin/web-ftpc.cgi > > Thanks > > George > > On Tue, Jul 11, 2006 at 11:52:44AM -0400, Anthony R. J. Ball wrote: > > > > So there is definately an FTP server running on the default port of > > the host you specified? > > > > On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > > > Hi there, > > > > > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > > > > > Now, when I run: > > > > > > https://<my server>/cgi-bin/web-ftp.cgi > > > > > > and log-in with an existing UNIX user, I get the following in my browser: > > > > > > -------------------- > > > There has been an error > > > > > > Server said: Net::FTP: connect: Connection refused > > > > > > Click here to go to the log in screen. > > > -------------------- > > > > > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > > > > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > > > > > Any help is more than welcome in order to troubleshoot the above. > > > > > > Thanks > > > > > > George > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, security? > > > Get stuff done quickly with pre-integrated technology to make your job easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > Web-ftp-general mailing list > > > Web...@li... > > > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > > > > > > > -- > > www.suave.net - Anthony Ball - an...@su... > > OSB - http://rivendell.suave.net/Beer > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > And Thom was left crying to the Butter Cow > > > -- www.suave.net - Anthony Ball - an...@su... OSB - http://rivendell.suave.net/Beer -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Can you be on the edge of time and still dance at the center? - Merry |
From: FTP <ft...@at...> - 2006-07-11 17:08:20
|
forgot to mention that when this error gets displayed, the browser gets redirected to the following URL: https://<my_server>/cgi-bin/web-ftpc.cgi/08492/START? Thanks George On Tue, Jul 11, 2006 at 07:06:19PM +0200, FTP wrote: > ops! Sorry. You were right :-( I forgot to start the FTP server :-( > > But now I get another error message. When the user credentials are correct, the browser displays the following: > > ------------------ > Internal Server Error > The server encountered an internal error or misconfiguration and was unable to complete your request. > > Please contact the server administrator, yo...@yo...dress and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > More information about this error may be available in the server error log. > ------------------- > > and the error_log: > > Premature end of script headers: /var/www/cgi-bin/web-ftpc.cgi > > Thanks > > George > > On Tue, Jul 11, 2006 at 11:52:44AM -0400, Anthony R. J. Ball wrote: > > > > So there is definately an FTP server running on the default port of > > the host you specified? > > > > On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > > > Hi there, > > > > > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > > > > > Now, when I run: > > > > > > https://<my server>/cgi-bin/web-ftp.cgi > > > > > > and log-in with an existing UNIX user, I get the following in my browser: > > > > > > -------------------- > > > There has been an error > > > > > > Server said: Net::FTP: connect: Connection refused > > > > > > Click here to go to the log in screen. > > > -------------------- > > > > > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > > > > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > > > > > Any help is more than welcome in order to troubleshoot the above. > > > > > > Thanks > > > > > > George > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, security? > > > Get stuff done quickly with pre-integrated technology to make your job easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > Web-ftp-general mailing list > > > Web...@li... > > > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > > > > > > > -- > > www.suave.net - Anthony Ball - an...@su... > > OSB - http://rivendell.suave.net/Beer > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > And Thom was left crying to the Butter Cow > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Web-ftp-general mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-ftp-general |
From: FTP <ft...@at...> - 2006-07-11 17:06:30
|
ops! Sorry. You were right :-( I forgot to start the FTP server :-( But now I get another error message. When the user credentials are correct, the browser displays the following: ------------------ Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, yo...@yo...dress and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ------------------- and the error_log: Premature end of script headers: /var/www/cgi-bin/web-ftpc.cgi Thanks George On Tue, Jul 11, 2006 at 11:52:44AM -0400, Anthony R. J. Ball wrote: > > So there is definately an FTP server running on the default port of > the host you specified? > > On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > > Hi there, > > > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > > > Now, when I run: > > > > https://<my server>/cgi-bin/web-ftp.cgi > > > > and log-in with an existing UNIX user, I get the following in my browser: > > > > -------------------- > > There has been an error > > > > Server said: Net::FTP: connect: Connection refused > > > > Click here to go to the log in screen. > > -------------------- > > > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > > > Any help is more than welcome in order to troubleshoot the above. > > > > Thanks > > > > George > > > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Web-ftp-general mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > > > > -- > www.suave.net - Anthony Ball - an...@su... > OSB - http://rivendell.suave.net/Beer > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > And Thom was left crying to the Butter Cow > |
From: Anthony R. J. B. <an...@su...> - 2006-07-11 15:52:28
|
So there is definately an FTP server running on the default port of the host you specified? On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > Hi there, > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > Now, when I run: > > https://<my server>/cgi-bin/web-ftp.cgi > > and log-in with an existing UNIX user, I get the following in my browser: > > -------------------- > There has been an error > > Server said: Net::FTP: connect: Connection refused > > Click here to go to the log in screen. > -------------------- > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > Any help is more than welcome in order to troubleshoot the above. > > Thanks > > George > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Web-ftp-general mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-ftp-general > -- www.suave.net - Anthony Ball - an...@su... OSB - http://rivendell.suave.net/Beer -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= And Thom was left crying to the Butter Cow |
From: FTP <ft...@at...> - 2006-07-11 15:12:18
|
Hi there, I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. Now, when I run: https://<my server>/cgi-bin/web-ftp.cgi and log-in with an existing UNIX user, I get the following in my browser: -------------------- There has been an error Server said: Net::FTP: connect: Connection refused Click here to go to the log in screen. -------------------- regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. Any help is more than welcome in order to troubleshoot the above. Thanks George |