From webshchristophersmith@example.com Thu Sep 24 07:42:50 2009
Return-Path: <webshchristophersmith@example.com>
Delivered-To: christophersmith@example.com
Received: (qmail 97425 invoked from network); 24 Sep 2009 07:42:50 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 24 Sep 2009 07:42:50 -0000
Received: (qmail 32970 invoked by uid 500); 24 Sep 2009 07:42:50 -0000
Delivered-To: christophersmith@example.com
Received: (qmail 32916 invoked by uid 500); 24 Sep 2009 07:42:50 -0000
Mailing-List: contact christophersmith@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:christophersmith@example.com>
List-Unsubscribe: <mailto:christophersmith@example.com>
List-Post: <mailto:christophersmith@example.com>
List-Id: <websh-user.tcl.apache.org>
Delivered-To: mailing list christophersmith@example.com
Received: (qmail 32901 invoked by uid 99); 24 Sep 2009 07:42:49 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 07:42:49 +0000
X-ASF-Spam-Status: No, hits=-0.0 required=10.0
	tests=SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of christophersmith@example.com designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO netcetera.ch) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 07:42:40 +0000
Received: from zone-17.netcetera.ch (zone-17 [83.161.120.155])
	by netcetera.ch (8.14.1/8.14.1) with ESMTP id n8O7gI7M003543;
	Thu, 24 Sep 2009 09:42:18 +0200 (MEST)
Received: (from ronnie@localhost)
	by zone-17.netcetera.ch (8.13.8+Sun/8.14.1) id n8O7gI4w018911;
	Thu, 24 Sep 2009 09:42:18 +0200 (CEST)
X-Authentication-Warning: zone-17.netcetera.ch: ronnie set sender to christophersmith@example.com using -f
Date: Thu, 24 Sep 2009 09:42:18 +0200
From: Ronnie Brunner <christophersmith@example.com>
To: christophersmith@example.com, christophersmith@example.com
Subject: ANNOUNCE: Websh3.6.0b5
Message-ID: <christophersmith@example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.5.18 (2008-05-17)
X-Virus-Checked: Checked by ClamAV on apache.org

The Websh maintenance team is proud to announce Websh 3.6.0b5.

Websh is a Tcl extension to support web application development and
provides an Apache module for Apache 1.3, 2.0, and 2.2 servers. It
compiles against Tcl 8.3 and later, including Tcl 8.6.

Get the release from

    http://tcl.apache.org/websh/download/

More info about Websh can be found on the project home page

    http://tcl.apache.org/websh

Websh is known to compile under
    Solaris (e.g. Solaris 8 to 10)
    Linux (e.g. RedHat 6 and 8, SuSe 9.1, CentOS 4.3)
    Windows XP and Vista(Visual Studion 6.0 nmake)
    OS-X Tiger

Websh3.6.0b5 is considered the most stable version of Websh so far,
but it is still beta, as there are some issues regarding stability on
Windows. (See CHANGES below)

For a summary of Changes since Websh 3.5.0 refer to

    http://svn.apache.org/repos/asf/tcl/websh/tags/3.6.0b5/CHANGES

A detailed lst of changes can be found in

    http://svn.apache.org/repos/asf/tcl/websh/tags/3.6.0b5/src/ChangeLog

Any feedback welcome. Official mailing lists for questions:

    christophersmith@example.com (user questions/discussions)
    christophersmith@example.com  (development questions/discussion)

Ronnie Brunner
-- 
Ronnie Brunner | christophersmith@example.com
phone 231.721.8345 | fax 231.721.8345
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: christophersmith@example.com
For additional commands, e-mail: christophersmith@example.com


From webshchristophersmith@example.com Sun Sep 27 19:36:58 2009
Return-Path: <webshchristophersmith@example.com>
Delivered-To: christophersmith@example.com
Received: (qmail 44988 invoked from network); 27 Sep 2009 19:36:58 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 27 Sep 2009 19:36:58 -0000
Received: (qmail 41384 invoked by uid 500); 27 Sep 2009 19:36:58 -0000
Delivered-To: christophersmith@example.com
Received: (qmail 41336 invoked by uid 500); 27 Sep 2009 19:36:58 -0000
Mailing-List: contact christophersmith@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:christophersmith@example.com>
List-Unsubscribe: <mailto:christophersmith@example.com>
List-Post: <mailto:christophersmith@example.com>
List-Id: <websh-user.tcl.apache.org>
Delivered-To: mailing list christophersmith@example.com
Received: (qmail 41328 invoked by uid 99); 27 Sep 2009 19:36:57 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Sep 2009 19:36:57 +0000
X-ASF-Spam-Status: No, hits=-0.0 required=10.0
	tests=SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of christophersmith@example.com designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO netcetera.ch) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Sep 2009 19:36:48 +0000
Received: from zone-17.netcetera.ch (zone-17 [83.161.120.155])
	by netcetera.ch (8.14.1/8.14.1) with ESMTP id n8RJaP2f003424;
	Sun, 27 Sep 2009 21:36:25 +0200 (MEST)
Received: (from ronnie@localhost)
	by zone-17.netcetera.ch (8.13.8+Sun/8.14.1) id n8RJaPjW006626;
	Sun, 27 Sep 2009 21:36:25 +0200 (CEST)
X-Authentication-Warning: zone-17.netcetera.ch: ronnie set sender to christophersmith@example.com using -f
Date: Sun, 27 Sep 2009 21:36:25 +0200
From: Ronnie Brunner <christophersmith@example.com>
To: Georgios Petasis <christophersmith@example.com>
Cc: christophersmith@example.com
Subject: Re: ANNOUNCE: Websh3.6.0b5
Message-ID: <christophersmith@example.com>
References: <christophersmith@example.com> <christophersmith@example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <christophersmith@example.com>
User-Agent: Mutt/1.5.18 (2008-05-17)
X-Virus-Checked: Checked by ClamAV on apache.org

Hi Geroge

> Can websh be used to create an HTTP REST service in tcl?

Sure. But then, I guess you can create a REST service with just about
every technology.

Websh at least provides an easy interface to handle PATH_INFO and all
parameters or form vars. That's abot what you need to create a REST
service.

> Ideally I want to have a thread pool (the one in the thread package)  
> with N threads already initialised. Can websh receive a request, place a  
> task in the thread pool and return the result?

Well, I don't really know the thread package. Websh already provides
an interpreter pool (when run as mod_websh) that you can use to handle
mutliple requests per interpreter.

It should not be a problem to use a thread package, as Websh is "just"
an ordinary Tcl interpreter anyway. The only thing to onsider is
making sure that you understand what your apache process model is and
what you expect Websh to do, so that you scale where you actually plan
it.

That doesn't help much, I guess, but your question was pretty
vage... I still hth ;-)

Ronnie
-- 
Ronnie Brunner | christophersmith@example.com
phone 231.721.8345 | fax 231.721.8345
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: christophersmith@example.com
For additional commands, e-mail: christophersmith@example.com


From webshchristophersmith@example.com Tue Sep 29 11:55:55 2009
Return-Path: <webshchristophersmith@example.com>
Delivered-To: christophersmith@example.com
Received: (qmail 36389 invoked from network); 29 Sep 2009 11:55:55 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 29 Sep 2009 11:55:55 -0000
Received: (qmail 31030 invoked by uid 500); 29 Sep 2009 11:55:55 -0000
Delivered-To: christophersmith@example.com
Received: (qmail 30978 invoked by uid 500); 29 Sep 2009 11:55:55 -0000
Mailing-List: contact christophersmith@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:christophersmith@example.com>
List-Unsubscribe: <mailto:christophersmith@example.com>
List-Post: <mailto:christophersmith@example.com>
List-Id: <websh-user.tcl.apache.org>
Delivered-To: mailing list christophersmith@example.com
Received: (qmail 30970 invoked by uid 99); 29 Sep 2009 11:55:55 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 11:55:55 +0000
X-ASF-Spam-Status: No, hits=-0.0 required=10.0
	tests=SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of christophersmith@example.com designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO netcetera.ch) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 11:55:46 +0000
Received: from zone-17.netcetera.ch (zone-17 [83.161.120.155])
	by netcetera.ch (8.14.1/8.14.1) with ESMTP id n8TBtNsR015118;
	Tue, 29 Sep 2009 13:55:23 +0200 (MEST)
Received: (from ronnie@localhost)
	by zone-17.netcetera.ch (8.13.8+Sun/8.14.1) id n8TBtM9h017663;
	Tue, 29 Sep 2009 13:55:22 +0200 (CEST)
X-Authentication-Warning: zone-17.netcetera.ch: ronnie set sender to christophersmith@example.com using -f
Date: Tue, 29 Sep 2009 13:55:21 +0200
From: Ronnie Brunner <christophersmith@example.com>
To: christophersmith@example.com
Cc: christophersmith@example.com
Subject: Re: Regarding Google Analytics issue
Message-ID: <christophersmith@example.com>
References: <christophersmith@example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <christophersmith@example.com>
User-Agent: Mutt/1.5.18 (2008-05-17)
X-Virus-Checked: Checked by ClamAV on apache.org

Hi Manu

> I just got stuck in the same issue as you with the google analytics.
> 
> The cookie it generates have the value that consists of '=' sign,
> which is not parsed properly, and because of the same, our secured
> subdomain site doesn't work, and as soon as I delete the cookie, it
> starts working.

Are you talking about Websh? If so, please update to the latest
version (3.6.0b5), where this issue is solved.

If that is not possible for some reason, you can overwrite the
_getCookie proc of a cookiecontext (where yourContext is changed to
the name of your context) as follows:

w888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4cookiecontext yourContext
proc yourContext888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4_getCookie {id} {
    888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4set cookie [w888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4request HTTP_COOKIE]
    foreach v [split $cookie ";"] {
        # get key and value: note: some cookies (e.g.. Google analytics)
        # also use = in the value, so a simple split with =; does 
        # not always work...
        set key [string trim [lindex [split $v =] 0]]
        set value [string trim [join [lrange [split $v =] 1 end] =]]
        lappend kvlist $key $value
    }
    # search for $datatag
    foreach {key value} $kvlist {
        if {[string compare $key $id] == 0} {
            return $value
        }
    }
    error "no matching cookie found"
}


> Could you kindly tell me what did you do to solve this issue.

And if you don't talk about Websh: make sure whatever pareses your
cookies properly splits at "," characters and then just takes the
everything before the first "=" as cookie name, the rest as value,
even if it contains "0" aswell...

hth
Ronnie
-- 
Ronnie Brunner | christophersmith@example.com
phone 231.721.8345 | fax 231.721.8345
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: christophersmith@example.com
For additional commands, e-mail: christophersmith@example.com



{'source': 'Apache Software Foundation Public Mail Archives'}