========================================================================= Date: Mon, 28 Sep 1998 18:56:51 -0400 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Peter Jansson Subject: ns_adp_abort vs. ns_adp_break? MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII What's the difference between these two functions? With the 2.3.1 release, is it ever appropriate to call ns_adp_break? Also, I swear there used to be documentation notes saying ns_adp_abort should only be called at the global level, but I can't find those notes any more. Can I call ns_adp_abort from an ns_adp_included file and expect it to work as if it were called from the calling adp? Pete. ========================================================================= Date: Fri, 2 Oct 1998 12:45:09 -0400 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Mark Dalrymple Subject: AOLServer 2.3.2 Released In-Reply-To: <199809250408.AAA22450@services.web.aol.com> (message from Automatic digest processor on Fri, 25 Sep 1998 00:07:11 -0400) Howdy, The AOLServer development team is happy to announce the official AOLserver 2.3.2 release. This fixes a couple of problems that were found in 2.3.1 (most notably an #include blunder that made building plug-in modules more painful than it should be), as well as fixing a long-standing bug that was discovered that caused some web monitoring tools to fail; so we figured we'd release a fix for those sooner rather than later. Release notes are at http://www.aolserver.com/server/docs/2.3.2/notes/index.html Enjoy, ++Mark Dalrymple, America Online Web Server Development. markd@aol.net ========================================================================= Date: Mon, 28 Sep 1998 20:54:37 +0200 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: =?iso-8859-1?Q?L=E1szl=F3_P=E1lmai?= Subject: nsftp & nsvhost MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, 1. Does anyone tried nsftp and nsvhost to work together? Please send sample configuration sections. (I see only the master host through nsftp.) 2. How can I configure nsftp to write the (sys and xfer) log files into another directory, than /servers//modules/nsftp/ ? Thanks, Laci ========================================================================= Date: Thu, 1 Oct 1998 08:34:32 +0200 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: =?iso-8859-1?Q?L=E1szl=F3_P=E1lmai?= Subject: tcl fails MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The Tcl Evaluation Result of the expression set month [ns_parsetime mon [ns_localtime]] is 9 (not 10 as October). The system date on the RedHat 5.1 (AOLserver 2.3) machine is Thu Oct 1 10:20:00 CEST 1998 Is it a bug or configuration error? Thanks, Laci ========================================================================= Date: Sat, 3 Oct 1998 16:43:51 EDT Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Mark Dalrymple Subject: Re: nsftp & nsvhost Mime-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit >1. Does anyone tried nsftp and nsvhost to work together? > Please send sample configuration sections. Sorry - nsvhost won't redirect nsftp requests. (nsvhost works by using the "Host:" header in the HTTP request, which FTP doesn't supply (AFAIK) ++Mark Dalrymple, America Online Web Server Development. markd@aol.com "I seem to be a verb" -- Buckminster Fuller ========================================================================= Date: Tue, 6 Oct 1998 09:51:56 -0400 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Mark Dalrymple Subject: Re: ns_adp_abort vs. ns_adp_break? In-Reply-To: <199810030404.AAA06610@services.web.aol.com> (message from Automatic digest processor on Sat, 3 Oct 1998 00:03:44 -0400) > What's the difference between these two functions? ns_adp_break - stop processing and send any pending data to the browser ns_adp_abort - stop processing and send any pending data to /dev/null Since these use the Tcl error mechanism, you can put a catch around, say an ns_adp_include, which does an ns_adp_break or ns_adp_abort, and continue processing from that point. ++Mark Dalrymple, America Online Web Server Development. markd@aol.net "The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka!" (I found it!) but "That's funny ..." -- Isaac Asimov ========================================================================= Date: Tue, 6 Oct 1998 14:28:05 -0700 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Ali Abedi Subject: ODBC for the UNIX Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; Name="Message Body" Content-Transfer-Encoding: quoted-printable Subject: Time:02:26 = PM OFFICE MEMO ODBC for the UNIX = Date:10/6/98 Does anybody know if this connection is possible: AOLServer on the Linux connecting to NT 4 (intel) with Microsft SQL 6. Any help is appreciated. Thanks Ali ========================================================================= Date: Mon, 12 Oct 1998 13:56:53 +0200 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Malte Sussdorff Subject: Permission In-Reply-To: <199810030346.FAA06568@post.strato.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hello, i have i few questions concerning permission handling. 1) Is it possible to pass the permission records via tcl to the aolserver, so that there is no pop-up screen, asking for the name and password. I have a form, containing name and password fields, so that, if the user isn't already registered with the system, he can register. But till now i have found no way of redirecting him to the pages for registered users without him giving the name and password again. 2) Is it possible to change the headline in the name/password popup like with apache (or at least give additional information) ? 3) Is it possible to return a specific page if access has been denied for a specific page (e.g. "Access to page blabla has been denied to you. Please register first at ...") Thanx in advance for your help Malte Sussdorff ========================================================================= Date: Tue, 13 Oct 1998 13:28:22 +0200 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Malte Sussdorff Subject: Missing TCL command In-Reply-To: <199809250350.FAA20115@post.strato.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, i noticed, that the TCL "variable" command isn't implemented in the AOLServer TCL. My intention is to initialize variables with a default value, and i don't want to do it with a list of "set x y" commands. I tried to work around this with calling a procedure, which sets the variables to the default value, hmm, but bringing them into context of the calling procedure failed. - -- proc init_string {items {arg_string ""}} { uplevel { foreach i $items { set $i $arg_string } } } - -- Any idea how i could a) Initialize Variables to a default value without using "set x y" a lot of times (more like "init {a b c d e f g df} 89", so that all variables (a,b,c..) have the value 89). b) Declare a local variable into another procedure level (and the variable doesn't exist in the other procedure level). Any help would be appreciated Yours Malte Sussdorff -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.5.5 for non-commercial use iQA/AwUBNiMrRuvM8FUlM/CPEQLa7wCaAv8Ecjk6HZXyUiA8KUYebHX80nwAoN+a 8h1i3jKhwKMcu9pkpcybP90B =oF4E -----END PGP SIGNATURE----- ========================================================================= Date: Tue, 13 Oct 1998 15:11:48 -0500 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: "J. Michael Roberts" Subject: Re: Missing TCL command In-Reply-To: <3.0.5.32.19981013132822.009504e0@alisys.sussdorff.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > a) Initialize Variables to a default value without using "set x y" a > lot of times (more like "init {a b c d e f g df} 89", so that all > variables (a,b,c..) have the value 89). foreach field {a b c d e f g df} { set $field 89} (I love Tcl, it's so gnarly) > > b) Declare a local variable into another procedure level (and the > variable doesn't exist in the other procedure level). upvar var myvar Usually this is used like "upvar var1 var1", so I can never remember which arg names the upped var, and which one the local. The second one is the local one; I just looked it up. Also, global var if you are working with global variables, of course. The Tcl mechanism for working with the caller's frame is an extremely powerful (and of course correspondingly dangerous) facility. I've done quite a bit of magical-seeming programming with it (magical because it wouldn't be possible in C). I heartily recommend Brent Welch's "Practical Programming in Tcl and Tk" -- since it's Tcl *and* Tk, you can toss about 80-90 percent of the book, of course, but the remainder is very useful. Michael ========================================================================= Date: Tue, 13 Oct 1998 16:25:53 -0400 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Patrick Giagnocavo Organization: Quadrant International Subject: Re: ODBC for the UNIX MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Since MS SQL is a version derived at least somewhat from Sybase, you might be able to use the Sybase module. You will need to compile with the Sybase client libs which are available for Linux (they are somewhere on Sybase's web site). ./patrick Ali Abedi wrote: > > Does anybody know if this connection is possible: > AOLServer on the Linux connecting to NT 4 (intel) with Microsft SQL 6. > Any help is appreciated. > Thanks > Ali ========================================================================= Date: Wed, 14 Oct 1998 16:28:49 -0400 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: "Kriston J. Rehberg" Subject: Re: Missing TCL command In-Reply-To: <69568474@toto.iv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit For the AOLserver, you should investigate the "ns_share" command which is the only real way to share global variables. Remember that one interpreter in the AOLserver will not necessarily be used for subsequent connections. To complicate this, AOLserver 2.2 onward does not share the global variable table among interpreters. That is why ns_share was created. It works like the global function. Kris J. Michael Roberts writes: >> a) Initialize Variables to a default value without using "set x y" a >> lot of times (more like "init {a b c d e f g df} 89", so that all >> variables (a,b,c..) have the value 89). > >foreach field {a b c d e f g df} { set $field 89} > >(I love Tcl, it's so gnarly) > >> >> b) Declare a local variable into another procedure level (and the >> variable doesn't exist in the other procedure level). > >upvar var myvar > >Usually this is used like "upvar var1 var1", so I can never remember which >arg names the upped var, and which one the local. The second one is the >local one; I just looked it up. > >Also, > >global var > >if you are working with global variables, of course. The Tcl mechanism >for working with the caller's frame is an extremely powerful (and of >course correspondingly dangerous) facility. I've done quite a bit of >magical-seeming programming with it (magical because it wouldn't be >possible in C). > >I heartily recommend Brent Welch's "Practical Programming in Tcl and Tk" >-- since it's Tcl *and* Tk, you can toss about 80-90 percent of the book, >of course, but the remainder is very useful. > >Michael > -- Kriston J. Rehberg Systems Development http://kriston.net/ America Online, Inc. Vienna, Virginia USA endeavor to persevere ========================================================================= Date: Wed, 14 Oct 1998 01:35:12 -0500 Reply-To: kclark@ntlug.org Sender: Web Development with AOLserver From: Kendall Clark Subject: nsservlet.so and JSKD 2.0? Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=bg08WKrSYDhXBjb5 --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii --bg08WKrSYDhXBjb5 Content-Type: message/rfc822 Content-Description: Forwarded message from Kendall Clark Hi, I'm using AOLSserver on Linux (Red Hat 5.0), and it works fine. I have the JSDK installed, version 2.0. I can use servletrunner to access Java servlets on this machine. I tried to setup nsservlet.so support in nsd.ini, but it causes the server to hang upon restarting... The error message in server.log points out, quit rightly, that I'm missing some class files in jsdk/lib, i.e., JSDK 2.0 doesn't appear to come with the Ncgi class files in the apache directory. I don't know what they are, but AOLserver doesn't want to start without them. Do I have to downgrade to JSDK 1.1? Is there a patch that allows AOLserver to work with JSDK 2.0? Btw, I'm using AOLsever 2.3.2. Thanks. Kendall Clark PS--Please reply to me at kclark@ntlug.org, and I'll summarize the responses for the list. I seem to be on the list as a digest subscriber and can't figure out how to fix that. --bg08WKrSYDhXBjb5-- ========================================================================= Date: Wed, 21 Oct 1998 12:56:26 +0200 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Sasa Danicic Subject: FTP library for TCL MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, my working environment include AOLServer (TCL 7.4 included) and Illustra RDBMS, both running on NT workstation. Trying to create a couple procedures for FTP GET and PUT functions between client and host (schedule-like process without any GUI interface), I'm looking for some libraries which can help me to complete my job. TCL API function like ns_sockopen, ns_sockaccept, etc. seems to me a little bit poor, so I'm looking for something "better and more friendly oriented". Can somebody help me? Best regards, Sasa Danicic, B.Sc.E.E. Sabac Yugoslavia ========================================================================= Date: Thu, 22 Oct 1998 15:04:43 -0700 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: "Daniel P. Stasinski" Organization: Karemor International, Inc. Subject: Re: AOLSERVER Digest - 13 Oct 1998 to 16 Oct 1998 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit After upgrading to 2.3.2, AOLserver dies when attempting to insert a duplicate record into a postgres database (one key is set as unique.) Using 'catch' doesn't catch it. A snippet from the log: [22/Oct/1998:12:53:57 -0700][1675.1690][kmi] Notice: Querying 'SELECT a.attname, t.typname FROM pg_class c, pg_attribute a, pg_type t WHERE c.relname = 'zipcodes' and a.attnum > 0 and a.attrelid = c.oid and a.atttypid = t.oid ORDER BY attname;' [22/Oct/1998:12:53:57 -0700][1675.1690][kmi] Notice: Querying 'select t_table, t_key, t_value from ns2_tables where t_table = 'zipcodes';' [22/Oct/1998:12:53:58 -0700][1675.1690][kmi] Notice: SQL(localhost:5432:karemor): select t_table, t_key, t_value from ns2_tables where t_table = 'zipcodes' [22/Oct/1998:12:53:58 -0700][1675.1690][kmi] Notice: Querying 'select c_table, c_col, c_key, c_value from ns2_columns where c_table = 'zipcodes';' [22/Oct/1998:12:53:58 -0700][1675.1690][kmi] Notice: SQL(localhost:5432:karemor): select c_table, c_col, c_key, c_value from ns2_columns where c_table = 'zipcodes' [22/Oct/1998:12:53:58 -0700][1675.1690][kmi] Notice: Querying 'insert into zipcodes (city, state, zip) values ('Adams', 'MA', '01220');' *** Exception caught in thread 1690 - invoking exception callbacks *** Status of virtual server 'brat': Threads: min 0, max 50, current 0, idle 0, busy 0, stopping 0 Active Connections: Status of virtual server 'sari': Threads: min 0, max 50, current 0, idle 0, busy 0, stopping 0 Active Connections: Status of virtual server 'life': Threads: min 0, max 50, current 0, idle 0, busy 0, stopping 0 Active Connections: Status of virtual server 'kmi': Threads: min 0, max 50, current 1, idle 0, busy 0, stopping 0 Active Connections: 1690: tclrun GET /addallzips 1 Status of virtual server 'nssetup': Threads: min 0, max 50, current 0, idle 0, busy 0, stopping 0 Active Connections: [22/Oct/1998:12:53:58 -0700][1675][kmi] Fatal: Server fatal exception - exiting. [22/Oct/1998:12:53:58 -0700][1693] Notice: AOLserver/2.3.2 starting. [22/Oct/1998:12:53:58 -0700][1693.1695] Notice: Loading module: /usr/local/AOLserver/bin/postgres.so -- /\/ Daniel P. Stasinski /\/ Karemor International, Inc. /\/ /\/ Software Engineer /\/ 2406 South 24th Street /\/ /\/ dannys@karemor.com /\/ Phoenix, AZ 85034 /\/ ========================================================================= Date: Fri, 23 Oct 1998 14:11:30 +0200 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Stefaan Onderbeke Organization: PT13 Subject: AOL server and Netscape 4.5 roaming facility. Comments: To: feedback@aolserver.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------45CF945161632DDCE1C707AB" This is a multi-part message in MIME format. --------------45CF945161632DDCE1C707AB Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, We are using AOL server for several years, I thins it's a great product, so keep on the good work. Recently I upgraded to version 2.3.2 (on SUN Solaris 2.5) without any problems. My question : In Netscape 4.5 there is a new (great) feature Roaming Access, this feature allows to store personal Netscape settings (e.g. bookmark files) on a WEB server. I tested this feature with AOL server 2.3.2 without success, by using a TCP/IP protocol analyser I was able to pin-point the problem : When I STARTUP Netscape, Netscape attempts to retrieve my personal profile from the server. CLIENT SERVER --> PUT //WRITETEST <-- 200 OK --> DELETE //WRITETEST <-- 200 OK --> HEAD //bookmarks <-- 404 NOT FOUND A 404 NOT FOUND, because the bookmark file was not stored yet on the server. When I CLOSE NETSCAPE, NETSCAPE tries to store my profile on the SERVER. --> HEAD //bookmarks <-- 404 NOT FOUND --> PUT //li28344.tmp --> HTTP DATA (my bookmark file) <-- 200 OK --> MOVE //li28344.tmp New-uri: //bookmarks <-- 403 FORBIDDEN --> DELETE //li28344.tmp So it seems that AOL server can't handle the MOVE method ! After adding the MOVE method (ref. AOL server manual pag. 155), and granting to the MOVE method the same access rights as to the PUT method, there is no 403 FORBIDDEN reply anymore, there is NO reply at all, but the MOVE is not executed by AOL server, the .tmp file is DELETED and nothing is stored on the AOL server. My questions : - Is there support by AOL server for the MOVE method ? - If so, how to configure it/ - If not, are there any plans to add support for MOVE, when? - , are there any alternatives ? Thanks in advance, Stef -- Onderbeke Stefaan ALCATEL BELL Amerikalei 26-28 B-2000 ANTWERP BELGIUM E-mail : onderbes@bigfoot.com --------------45CF945161632DDCE1C707AB Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Description: Card for Stefaan Onderbeke Content-Disposition: attachment; filename="vcard.vcf" Content-Transfer-Encoding: 7bit begin: vcard fn: Stefaan Onderbeke n: Onderbeke;Stefaan org: PT13 adr: Amerikalei 26-28;;;Antwerp;;B-2000;Belgium email;internet: onderbes@bigfoot.com title: System Analyst tel;work: 32/3/2403721 tel;fax: 32/3/2403890 tel;home: 32/9/2213331 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------45CF945161632DDCE1C707AB-- ========================================================================= Date: Fri, 23 Oct 1998 09:13:03 -0400 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Mark Dalrymple Subject: Re: AOL server and Netscape 4.5 roaming facility. Comments: To: onderbes@bigfoot.com Comments: cc: feedback@aolserver.com In-Reply-To: <36307272.3A76B546@bigfoot.com> (message from Stefaan Onderbeke on Fri, 23 Oct 1998 14:11:30 +0200) Hey Stefaan, > So it seems that AOL server can't handle the MOVE method ! That's correct. I'll put it on our list of Stuff to Do. There currently is no implementation for a MOVE method. Here's what I did to make a quickie version that should work for you. * mapped MOVE to GET in the nsperm setup * put this function into a .tcl file and put it into an appropriate place in the AOLServer install (to make it visible everywhere, put it into $AOLSERVER_ROOT/modules/tcl/, otherwise put it into $AOLSERVER_ROOT/servers/server-name/modules/tcl/ ns_register_proc MOVE / move_proc proc move_proc { } { # I'm not sure what's the appropriate return code, so assuming that 200 # is sufficient set fromfile [ns_info pageroot]/[ns_conn url] set headers [ns_conn headers] ns_set print $headers set tofile [ns_info pageroot]/[ns_set iget $headers "new-uri"] # there doesn't seem to be a one-stop-shopping for moving a file, # so simulate it ns_cp $fromfile $tofile ns_unlink $fromfile ns_return 200 text/html "MOVE was successful, from $fromfile to $tofile" } ;# move_proc I did this in a telnet: % !tel telnet circle 1800 Trying... Connected to circle.office.aol.com. Escape character is '^]'. MOVE /test HTTP/1.0 new-uri: /test2 and it moved servers/server-name/pages/test to servers/server-name/pages/test2. Lemme know if you have any problems or questions. ++Mark Dalrymple, America Online Web Server Development ========================================================================= Date: Sun, 25 Oct 1998 11:25:38 +0100 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Sasa Danicic Subject: ns_socket at port 21 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, did someone know can I deal with "ns_socket" group of function at port 21 ? I use AOLServer (ver. 2.1, Tcl ver 7.4) & Illustra RDBMS under NT. Thanx a lot, Sasa Danicic ========================================================================= Date: Mon, 26 Oct 1998 12:01:14 +0100 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Stefaan Onderbeke Organization: PT13 Subject: Re: AOL server and Netscape 4.5 roaming facility. Comments: To: Mark Dalrymple Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------6DCF0A7EC81AFD20D5F9732A" This is a multi-part message in MIME format. --------------6DCF0A7EC81AFD20D5F9732A Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Mark, The http MOVE method is working ! Thanks again ! I do have another problem : - after upgrading from AOLSerevr 2.1 --> 2.3.2 - when my users open a page, the mini-web icon is gray (there exists a min-web) - when they re-create the min-web (Tools-->Webize Directory) they are able to modify there pages - when the save the modified page and mini-web no errors are generated - after clossing AOLpress and re-opening the same page, the min-web icon is again grayed (disabled) and they are forced to regenerate the mini-web What can be the reason of this problem ? I have deleted allready the min-web file on the server and regenerated the min-web with AOLpress, but the probelm remains, when I open the page with AOLpress the min-web icon is disabled ! Kind regards, Stef --------------6DCF0A7EC81AFD20D5F9732A Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Description: Card for Stefaan Onderbeke Content-Disposition: attachment; filename="vcard.vcf" Content-Transfer-Encoding: 7bit begin: vcard fn: Stefaan Onderbeke n: Onderbeke;Stefaan org: PT13 adr: Amerikalei 26-28;;;Antwerp;;B-2000;Belgium email;internet: onderbes@bigfoot.com title: System Analyst tel;work: 32/3/2403721 tel;fax: 32/3/2403890 tel;home: 32/9/2213331 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------6DCF0A7EC81AFD20D5F9732A-- ========================================================================= Date: Wed, 28 Oct 1998 15:48:00 +0100 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Branimir Dolicki Subject: Hanging scripts MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello, I created a dummy Tcl script /test/blah.tcl that runs forever, like this: while 1 {} Okay, now I request http://myhost/test/blah.tcl with my browser and, of course, nothing happens, so I press STOP button to terminate the connection. What I find disturbing is that when I look at the active connections with ns_server it turns out that /test/blah.tcl still lives (and consumes the system resources)! Apparently, the only way to get rid of it is to restart the server. How come that the AolServer doesn't notice that the connection is dead and terminates the script/thread? BTW, is there a way to kill a particular thread within the AolServer? Oh, yes, I am using AOLserver 2.2 on linux 2.0.30 on an i586. Thanks, -- Branimir ========================================================================= Date: Mon, 19 Oct 1998 20:53:25 -0700 Reply-To: Web Development with AOLserver Sender: Web Development with AOLserver From: Hal Heisler Subject: multipart/form-data MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have an text files that I would like to upload to AOLserver 2.1 on NT. Each line ends with a newline character. I use a multipart/form-data form to upload the file. The following tcl code writes the form-data from the connection to a file. (Thanks to gnat for dci_formdata.) # Write the content data to a temp file set in_file [ns_tmpnam] set fp [open $in_file w] ns_conncptofp $c $fp close $fp If I open the file $in_file I see that a new newline character has been tacked on to each line. Is this the expected behavior of ns_conncptofp? Is there an alternative way to access all of a connection's multipart formdata? Is there a safe way to strip out all the unwanted newline characters? I suppose I could try stripping the last character from each line or do a regsub of some sort... it seems so wrong. I vaguely remember someone recommending a Perl/CGI solution for file uploads to AOL 2.1 / NT. -Hal Heisler