[AOLSERVER] Example of nsproxy usage

2007-07-13 Thread JAMSHED QURESHI
Helo, Anyone like to give a taste of nsproxy usage for example an executable. cheers, -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:

Re: [AOLSERVER] Ns_write doesn't seem to close the socket

2007-07-13 Thread JAMSHED QURESHI
Thanks Bas, I realized this and now incuded the call to ns_close. Can we put your explanation into ns_write API doc. http://panoptic.com/wiki/aolserver/Ns_write This will help the reader to fully understand the practical usage of ns_write. From: AOLserver Discu

[AOLSERVER] About Aolserver4.5.0 read content question

2007-07-13 Thread 张越
Hi! Everyone I want to POST some data to my cgi ,and upload files.I hope to get upload file rate of progress. At Aolserver3.5,I can use Ns_ConnRead() read data as same time. But when I debug prog in Aolserver4.5, find data all be uploaded first. When upload accomplish,then can call my module entry

Re: [AOLSERVER] Ns_write doesn't seem to close the socket

2007-07-13 Thread JAMSHED QURESHI
I realized that i need to call ns_conn close after ns_write to close the socket. From: AOLserver Discussion [mailto:[EMAIL PROTECTED] On Behalf Of JAMSHED QURESHI Sent: Friday, July 13, 2007 11:59 AM To: AOLSERVER@LISTSERV.AOL.COM Subject: [AOLSERVER] Ns_write doe

Re: [AOLSERVER] Ns_write doesn't seem to close the socket

2007-07-13 Thread Bas Scheffers
ns_write is designed to be called multiple times so you can "stream" content to the client. It is not designed to close the connection after one call! Have you tried "ns_conn close"? Cheers, Bas. On 13/07/2007, at 9:59 AM, JAMSHED QURESHI wrote: Hi, Upon receiving the request i'm callin

[AOLSERVER] Ns_write doesn't seem to close the socket

2007-07-13 Thread JAMSHED QURESHI
Hi, Upon receiving the request i'm calling ns_write like so: proc request {} { set retstring "HTTP/1.0 201 Created\nMIME-Version: 1.0\nDate: Fri, 13 Jul 2007 08:46:46 GMT\nServer: AOLserver/4.0.10\nContent-Type: application/x-tcl-list\nContent-Length: 77\nConnection: close\n\nSUCCESS"